Dock MCP server

Finance and commerce

DEPRECATED: no live endpoint (api.dock.tech does not resolve).

Your AI app calls the Dock MCP server, which does the finance and commerce work and sends the result back to the chat.

About Dock

Dock is a community MCP server from codespar, filed in our directory under finance and commerce. DEPRECATED: no live endpoint (api.dock.tech does not resolve).

Dock runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-dock@0.2.0-alpha.4 and talks to it over standard input and output. It needs DOCK_CLIENT_ID and DOCK_CLIENT_SECRET set before Dock starts.

Dock is listed in the official MCP registry as io.github.codespar/mcp-dock, version 0.2.0-alpha.4.

At a glance

Publisher
codespar (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @codespar/mcp-dock
Written in
TypeScript
License
MIT
GitHub stars
278
Official MCP registry
io.github.codespar/mcp-dock

How to set up Dock

  1. Install Node.js on the machine that runs your AI app, because Dock starts with npx and downloads its package on first run.
  2. Create DOCK_CLIENT_ID and DOCK_CLIENT_SECRET for Dock in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Dock to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Dock tools to confirm the connection.
  5. Run one read-only task with Dock first, and keep your app asking before each tool call until the results look right.

Dock compared with similar servers

  • Ebanx by codespar has fewer GitHub stars than Dock (278 against 278); both are community servers, and both run locally.
  • Dlocal by codespar has fewer GitHub stars than Dock (278 against 278); both are community servers, and both run locally.
  • Efi by codespar has fewer GitHub stars than Dock (278 against 278); both are community servers, and both run locally.

Before you connect Dock

  • Give Dock its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Dock tool call until you trust what it does with them.
  • Treat text that Dock fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Dock on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Dock

How marketing and sales teams put Dock to work, by company size. Pick the size closest to yours and start Dock on one use case.

Small business

  • A small business can ask Dock which products and customers drive margin, then plan promotions around them.
  • Owners can use Dock to check refunds, failed payments and churn reasons without opening three dashboards.
  • Dock runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Dock to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Dock to check spend against budget each week and move money to what's working.
  • Start Dock on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Dock read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Dock to answer revenue questions by channel and region with figures finance signs off on.
  • Dock is a community server, so have security review the code and pin a version before Dock touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Dock README

From codespar/mcp-dev-latam on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

@codespar/mcp-dock

Deprecated: no live endpoint. Measured on 2026-09-27 against two public DNS resolvers (8.8.8.8 and 1.1.1.1): api.dock.tech (production) and sandbox.api.dock.tech (sandbox) do not resolve in DNS. No tool in this server reaches a service. The package is deprecated on npm and stays in this repository for reference only. If you have a working endpoint, point the server at it with DOCK_BASE_URL. To bring the package back, open an issue in mcp-dev-latam with the provider's documented base URL.

MCP server for Dock, Brazilian Banking-as-a-Service (accounts, Pix, card issuing) for fintechs and embedded-finance products

Why Dock

Dock is one of the two dominant BaaS providers in Brazil. Together with Matera, they power most BR fintechs.

Matera vs Dock, pick one, same commerce patterns:

Matera Dock
Core strength Pix-focused core banking Broader BaaS: accounts + Pix + card issuing
Historical root Core-banking platform Card-issuing platform that expanded into accounts + Pix
Typical customer Fintech building on top of Pix Fintech / retailer issuing branded cards + accounts
Pix Automático Live (2025 BCB product) Roadmap

BR fintechs usually pick one based on contract terms and pricing. Agents building fintech products can target both, the commerce patterns are identical; only the vendor relationship changes. This server exposes Dock's surface in the same shape as @codespar/mcp-matera so an agent can swap backends without rewriting tool-call logic.

Use Dock when an agent needs to:

  • Spin up digital accounts for end users (CPF holders)
  • Move money via Pix (charges, transfers, DICT, refunds)
  • Issue cards (debit / credit / prepaid / virtual) against those accounts, Dock's key differentiator

Quick Start

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "dock": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-dock"],
      "env": {
        "DOCK_CLIENT_ID": "your-client-id",
        "DOCK_CLIENT_SECRET": "your-client-secret",
        "DOCK_ENV": "sandbox"
      }
    }
  }
}
Claude Code
claude mcp add dock -- npx @codespar/mcp-dock
Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.json:

{
  "servers": {
    "dock": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-dock"],
      "env": {
        "DOCK_CLIENT_ID": "your-client-id",
        "DOCK_CLIENT_SECRET": "your-client-secret",
        "DOCK_ENV": "sandbox"
      }
    }
  }
}

Tools (20)

Tool Purpose
create_account Create a digital account for an end user (CPF holder) on Dock.
get_account Retrieve a Dock account by id.
send_pix Initiate an outbound Pix transfer from a Dock account to any Pix key in BR.
get_pix Retrieve an outbound Pix payment by endToEndId.
create_pix_qr_static Create a static Pix QR (reusable, tied to a merchant Pix key).
create_pix_qr_dynamic Create a dynamic Pix QR (single-use, expiring).
refund_pix Refund (devolução) a Pix payment.
resolve_dict_key Resolve a Pix DICT key to the account holder's identity and ISPB/branch/account.
issue_card Issue a card (debit / credit / prepaid / virtual) against a Dock account.
get_card Retrieve a card by id.
list_accounts List Dock accounts under the merchant.
freeze_account Freeze (block) a Dock account.
unfreeze_account Unfreeze a previously frozen Dock account, restoring Pix and card operations.
block_card Block a card temporarily (reversible).
unblock_card Unblock a card that was previously blocked (reversible).
change_card_status Change a card's lifecycle status: ACTIVE / BLOCKED / CANCELED.
list_transactions List transactions on a Dock account (Pix in/out, card auths, fees, transfers).
get_transaction Retrieve a single transaction by id.
create_webhook Register a webhook endpoint to receive Dock event notifications (account., pix., card., transaction.).
list_webhooks List all webhook endpoints registered for the merchant.

Authentication

OAuth 2.0 Client Credentials. The server calls POST /oauth/token with Basic auth (client_id:client_secret) and caches the bearer token in memory until a minute before expiry.

Environment Variables

Variable Required Description
DOCK_CLIENT_ID Yes OAuth2 client_id issued by Dock
DOCK_CLIENT_SECRET Yes OAuth2 client_secret (secret)
DOCK_ENV No sandbox (default) or production

Base URL is derived from DOCK_ENV: https://sandbox.api.dock.tech (sandbox) or https://api.dock.tech (production).

Status

v0.1.0-alpha.1, tool surface is stable, wire paths are NOT yet verified.

Dock's developer portal at developers.dock.tech redirects to a ReadMe.com login gate. Public docs are not accessible without a Dock merchant contract, so on 2026-04-21 we could not validate the exact URL paths.

The endpoint paths in src/index.ts follow standard BR BaaS conventions (matching Matera's shape and the BCB Pix spec) and are best-guesses. Known-suspect items are flagged inline with To do(verify) comments:

Area Value in code Why it's suspect
Token endpoint POST /oauth/token Standard candidate, but /oauth2/token or /auth/v1/token also common
Pix refund POST /pix/payments/{e2eid}/refund BCB spec names refunds /pix/{e2eid}/devolucao/{id}
DICT lookup GET /pix/dict/{key} BCB DICT is RSFN-gated; Dock's wrapper path unverified

The 10 tool names and input schemas above are the public contract and will remain stable. Only the internal HTTP calls in src/index.ts will change when we verify against the sandbox. Using this server against a live Dock tenant today may produce 404s on most calls.

PR welcome from anyone with a Dock sandbox.

Roadmap

v0.2 (planned)
  • Verified paths against Dock sandbox
  • Card controls: block_card, unblock_card, set_card_limits
  • Account statements and transaction listings
  • Webhook event helpers
v0.3 (planned)
  • Boleto issuance
  • TED / bank transfers (non-Pix rails)
  • Credit underwriting endpoints (Dock's credit stack)

Want to contribute? Open a PR or request a tool.

Links

Enterprise

Need governance, budget limits, and audit trails for agent-initiated bank transfers and card issuance? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

Questions about Dock

What is the Dock MCP server?

DEPRECATED: no live endpoint (api.dock.tech does not resolve). Dock is maintained by codespar on GitHub at codespar/mcp-dev-latam, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Dock MCP server?

Add Dock to your AI app's MCP config with the command npx -y @codespar/mcp-dock@0.2.0-alpha.4. In Claude Code, run claude mcp add --transport stdio codespar-dock -- npx -y @codespar/mcp-dock@0.2.0-alpha.4. To run Dock this way you need Node.js installed.

Does Dock need an API key?

Yes. Dock expects DOCK_CLIENT_ID and DOCK_CLIENT_SECRET to be set. Create the key for Dock in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Dock an official MCP server?

No. Dock is a community server maintained by codespar. Community servers can be excellent; read the code and the open issues before you give Dock access to company data.

What license is Dock under?

Dock is released under the MIT license, according to its GitHub repository. The license covers the code of Dock; the service it connects to has its own terms.