Pular para o conteúdo

Decade MCP server

Last updated: December 3, 2026

The Decade MCP server lets an AI assistant ask Decade on behalf of a signed-in Decade customer. Decade answers from the customer's own bank accounts, credit cards and investments connected through Open Finance Brasil, and from Decade's analyses and recommendations for that customer.

Typical questions:

  • How much did I spend on restaurants this month?
  • What is on my credit card bill?
  • How is my portfolio doing?
  • Where should I invest?
  • How can I pay less tax?

Requirements

  • Account. A Decade account is required. Customers sign in with it during authorization.
  • Eligibility. Some accounts cannot use this feature yet; they receive an explicit error.
  • Region. Brazil. Decade covers Brazilian finance and data connected through Open Finance Brasil.
  • Payments. The server takes no payments and moves no money.

Connection

Authorization

The server is its own OAuth 2.1 authorization server. Clients discover every endpoint from the metadata documents above.

  • Client registration. Client ID Metadata Document: the client_id is the HTTPS URL of the client's metadata document. Dynamic client registration is not available.
  • Client authentication. private_key_jwt signed with ES256. There is no client secret.
  • PKCE. Required, with the S256 method.
  • DPoP. Required. Access tokens are bound to the client's ES256 key.
  • Redirect URIs. HTTPS only, matched exactly against the client's metadata document.
  • Resource indicator. https://mcp.decade.com or https://mcp.decade.com/mcp.
  • Token lifetimes. Access tokens last 15 minutes. Refresh tokens last 30 days, are rotated on every use, and a grant ends after 90 days.
  • Revocation. POST https://mcp.decade.com/oauth/revoke ends the client's access.

The customer signs in and approves the connection on a Decade page. A request without a valid token receives 401 with a WWW-Authenticate header that points to the resource metadata.

Tools

A conversation with Decade is a session. The client creates a session, sends the customer's message, and reads the answer until it is complete.

create_financial_advisor_session

Starts a conversation with Decade and returns its session_id. Reuse the session for follow-up questions on the same subject.

  • Classification. Write.
  • Input. title (optional, 1 to 60 characters) and idempotency_key (optional, 1 to 64 letters, digits, underscores or hyphens).
  • Output. session_id (UUID) and created, which is false when the session already existed for the same idempotency_key.
  • Side effects. Creates a conversation in the customer's Decade history.
  • Retries. A repeated call with the same idempotency_key returns the same session.

send_message

Sends the customer's message to Decade in a session. It returns a cursor, never the answer.

  • Classification. Write.
  • Input. session_id (required), prompt (required, 1 to 8000 characters) and files (optional).
  • Output. cursor, to pass to get_messages, and status: accepted, or already_sent when the same message was sent before and nothing was sent again.
  • Side effects. Stores the message and its files in the customer's Decade history and starts Decade's answer. While answering, Decade can update the customer's own Decade records as part of the conversation, for example adding a holding the customer describes or recording a correction to an analysis.
  • Retries. A call that fails or times out can be repeated right away with the same prompt; the message is not sent twice.

The prompt must be self-contained: Decade does not see the assistant's conversation, only the session. Prompts must never contain passwords, card numbers or security codes.

get_messages

Reads the messages of a session.

  • Classification. Read.
  • Input. session_id (required), cursor (optional; without it the whole conversation is returned) and wait_seconds (optional, 0 to 30, default 20).
  • Output. messages, next_cursor, status (running while Decade is still answering, idle when it finished) and has_more.
  • Side effects. None.

While status is running or has_more is true, call again with next_cursor. The answer is complete only when status is idle.

Messages

Every message has id, role (user or assistant), type and created_at. The type names the field that is set:

  • text. The message in Markdown.
  • file. A file with filename, mime_type and a temporary HTTPS url that downloads it with a plain GET until url_expires_at. Links last a few minutes; calling get_messages again with the cursor that returned a link renews it. Small images are also returned inline.
  • card. A chart (line, bar or pie, with 1 to 6 series) or an indicator (1 to 6 metric tiles), for the client to render with its own interface.

Clients show assistant messages to the customer in order and unchanged.

Files

files accepts up to 10 files and 32 MiB per message, each with filename, mime_type and data_base64.

Limits

  • One answer at a time per session: a message sent while Decade is still answering is refused.
  • An answer can take up to 15 minutes.
  • get_messages waits at most 30 seconds per call.
  • A request body is limited to 48 MB.

Errors

Tool failures are returned as tool errors with one of these messages:

Data

The server stores OAuth state only: hashed authorization codes and refresh tokens, removed after they expire. Conversations, including attached files and files Decade produces, are kept in the customer's Decade history. The Privacy Policy describes how Decade handles personal data.

Support

Questions about the server: privacidade@decade.com.