Skip to main content
DO

Dock

v0.2.0-alpha.2OAuth2alpha

BaaS do BR — principal concorrente da Matera, sustenta boa parte da stack fintech brasileira. Diferencial vs Matera: emissão de cartão por cima de Pix + contas. Alpha no npm — developers.dock.tech é fechado no ReadMe, paths seguem as convenções padrão de BaaS BR.

20 ferramentas3 env vars🇧🇷 Brasilalpha — validação pendente

O que seu agente faz

O Dock dá ao seu agente 20 tools que ele chama direto — escolha as que precisar, no Claude, Cursor ou qualquer cliente MCP.

  • create_accountCreate a digital account for an end user (CPF holder) on Dock. Returns the account id, agency, and account number. Account holds funds that can be moved via Pix or spent via issued cards.
  • get_accountRetrieve a Dock account by id. Returns balance, status, holder info, and account coordinates (agency / account number).
  • send_pixInitiate an outbound Pix transfer from a Dock account to any Pix key in BR. Returns endToEndId once the BCB SPI confirms.
Exemplo de chamada
// Your agent calls a tool directly — no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("create_account", { /* ... */ });

Instalar

terminal
$ npm install @codespar/mcp-dock@alpha

Quickstart

Adicione esta entrada ao seu claude_desktop_config.json (ou a config de qualquer cliente compatível com MCP).

claude_desktop_config.json
{
  "mcpServers": {
    "dock": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-dock@alpha"
      ],
      "env": {
        "DOCK_CLIENT_ID": "<your_dock_client_id>",
        "DOCK_CLIENT_SECRET": "<your_dock_client_secret>"
      }
    }
  }
}

Depois de reiniciar, seu agente pode chamar qualquer uma das 20 ferramentas abaixo — teste create_account primeiro.

Variáveis de ambiente · 3

Necessárias pra autenticar o server. Armazenadas criptografadas ao usar a hospedagem gerenciada da CodeSpar.

DOCK_CLIENT_ID
obrigatório

OAuth2 client_id issued by Dock

DOCK_CLIENT_SECRET
obrigatóriosecret

OAuth2 client_secret issued by Dock

DOCK_ENV
opcional

Environment: sandbox or production. Defaults to sandbox.

Ferramentas disponíveis · 20

Cada ferramenta é independente — seu agente carrega só o que precisa pra reduzir contexto e tempo de resposta.

WRITEcreate_account
Create a digital account for an end user (CPF holder) on Dock. Returns the account id, agency, and account number. Account holds funds that can be moved via Pix or spent via issued cards.
READget_account
Retrieve a Dock account by id. Returns balance, status, holder info, and account coordinates (agency / account number).
WRITEsend_pix
Initiate an outbound Pix transfer from a Dock account to any Pix key in BR. Returns endToEndId once the BCB SPI confirms.
READget_pix
Retrieve an outbound Pix payment by endToEndId.
WRITEcreate_pix_qr_static
Create a static Pix QR (reusable, tied to a merchant Pix key). Returns EMV copy-paste payload and QR image. Use for points-of-sale or donations where the same QR is shown to many payers.
WRITEcreate_pix_qr_dynamic
Create a dynamic Pix QR (single-use, expiring). Returns txid, EMV payload, and QR image. Preferred for e-commerce checkouts and invoices.
DELETErefund_pix
Refund (devolução) a Pix payment. Supports full or partial amount. Use BCB MED reason codes when applicable.
READresolve_dict_key
Resolve a Pix DICT key to the account holder's identity and ISPB/branch/account. Use before sending large transfers to verify the counterparty. DICT queries are rate-limited and logged by BCB.

Frameworks compatíveis

MCP é um protocolo — qualquer framework que o fale pode montar este server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Qualquer cliente MCPProtocolo

Perguntas frequentes

Rode `npx -y @codespar/mcp-dock` e adicione o bloco de config acima ao seu cliente MCP — Claude, Cursor, VS Code ou qualquer cliente compatível com MCP. Sem build, sem SDK. Prefere hospedado? O tier gerenciado da CodeSpar roda pra você, com a auth resolvida.
Dock — MCP server · 20 tools | CodeSpar