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
- Endpoint
- https://mcp.decade.com/mcp
- Transport
- Streamable HTTP, stateless
- Authorization
- OAuth 2.1 authorization code with refresh tokens
- Scope
- mcp
- Resource metadata
- https://mcp.decade.com/.well-known/oauth-protected-resource
- Authorization server metadata
- https://mcp.decade.com/.well-known/oauth-authorization-server
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_idis the HTTPS URL of the client's metadata document. Dynamic client registration is not available. - Client authentication.
private_key_jwtsigned with ES256. There is no client secret. - PKCE. Required, with the
S256method. - 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.comorhttps://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/revokeends 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) andidempotency_key(optional, 1 to 64 letters, digits, underscores or hyphens). - Output.
session_id(UUID) andcreated, which isfalsewhen the session already existed for the sameidempotency_key. - Side effects. Creates a conversation in the customer's Decade history.
- Retries. A repeated call with the same
idempotency_keyreturns 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) andfiles(optional). - Output.
cursor, to pass toget_messages, andstatus:accepted, oralready_sentwhen 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) andwait_seconds(optional, 0 to 30, default 20). - Output.
messages,next_cursor,status(runningwhile Decade is still answering,idlewhen it finished) andhas_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 withfilename,mime_typeand a temporary HTTPSurlthat downloads it with a plain GET untilurl_expires_at. Links last a few minutes; callingget_messagesagain with the cursor that returned a link renews it. Small images are also returned inline.card. Achart(line, bar or pie, with 1 to 6 series) or anindicator(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.
- PNG, JPEG, GIF, WebP
- Up to 4 MiB each
- Up to 24 MiB
- CSV, XLSX
- Up to 10 MiB each
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_messageswaits 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:
- unauthenticated caller
- The request carries no valid Decade user.
- no Decade account linked to this user
- The signed-in user has no Decade account.
- this account cannot use the assistant yet (not eligible or not permitted)
- The account is not eligible for this feature.
- session not found; create one with create_financial_advisor_session
- No such session exists for the signed-in user.
- the advisor is still answering in this session; call get_messages until status is idle, then send again
- A message was sent before the previous answer finished.
- invalid cursor; call get_messages without a cursor
- The cursor was not issued for this session.
- assistant is at capacity; retry shortly
- The service is at its concurrency limit.
- the assistant did not finish in time
- The answer exceeded the time limit.
- the assistant could not answer
- The answer ended without a result; a reason may follow in parentheses.
- file errors
- The file is not valid base64, has an unsupported type, or is too large; the message names the file.
- assistant unavailable
- Any other failure. Retry later.
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.