# mcp-dock

Connects AI agents to the Brazilian Dock BaaS platform for accounts, Pix, and card issuing. The package is currently deprecated because Dock endpoints no longer resolve.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 274
- Author: codespar
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/codespar/mcp-dev-latam/tree/HEAD/packages/banking/dock
- Updated: 2026-09-27
- HTML: https://affpapa.org/en/nevibecode/mcp/mcp-dock

## What it does

This server defines 20 tools for interacting with Dock banking APIs. Agents can open digital accounts for Brazilian CPF holders, initiate Pix transfers, generate static or dynamic QR codes, and register event webhooks. It also covers card lifecycle management, including issuance, status changes, and temporary card freezing.

Authorization relies on OAuth 2.0 client credentials using `DOCK_CLIENT_ID` and `DOCK_CLIENT_SECRET`. Tokens are cached in memory prior to expiration. Environment settings switch between sandbox and production URLs.

Calls will fail unless you specify `DOCK_BASE_URL`. Official hostnames `api.dock.tech` and `sandbox.api.dock.tech` stop resolving in public DNS, leaving the tool surface without an active backend.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `DOCK_CLIENT_ID`, `DOCK_CLIENT_SECRET`, `DOCK_ENV` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env DOCK_CLIENT_ID=<DOCK_CLIENT_ID> --env DOCK_CLIENT_SECRET=<DOCK_CLIENT_SECRET> --env DOCK_ENV=<DOCK_ENV> --transport stdio dock -- npx -y @codespar/mcp-dock
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add dock --env DOCK_CLIENT_ID=<DOCK_CLIENT_ID> --env DOCK_CLIENT_SECRET=<DOCK_CLIENT_SECRET> --env DOCK_ENV=<DOCK_ENV> -- npx -y @codespar/mcp-dock
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "dock": {
            "command": "npx",
            "args": [
                "-y",
                "@codespar/mcp-dock"
            ],
            "env": {
                "DOCK_CLIENT_ID": "<DOCK_CLIENT_ID>",
                "DOCK_CLIENT_SECRET": "<DOCK_CLIENT_SECRET>",
                "DOCK_ENV": "<DOCK_ENV>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "dock": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@codespar/mcp-dock"
            ],
            "env": {
                "DOCK_CLIENT_ID": "<DOCK_CLIENT_ID>",
                "DOCK_CLIENT_SECRET": "<DOCK_CLIENT_SECRET>",
                "DOCK_ENV": "<DOCK_ENV>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e DOCK_CLIENT_ID=<DOCK_CLIENT_ID> -e DOCK_CLIENT_SECRET=<DOCK_CLIENT_SECRET> -e DOCK_ENV=<DOCK_ENV> dock npx -y @codespar/mcp-dock
```
Replace <…> with your own values

## When to use it
- open digital banking accounts for CPF holders in Brazil
- dispatch Pix payments and build QR codes for incoming transfers
- issue and block physical or virtual payment cards
- freeze accounts to halt operations during security incidents
- register webhook subscriptions for financial events

## Example prompts
- Open a digital Dock account for this CPF holder
- Generate a dynamic Pix QR code for a single order
- Issue a virtual card linked to this account ID

## Similar
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89408
- [CCXT](https://affpapa.org/en/nevibecode/mcp/ccxt.md) — MCP server · ★ 44583
- [Finance Toolkit](https://affpapa.org/en/nevibecode/mcp/finance-toolkit.md) — MCP server · ★ 5458
- [EdgarTools](https://affpapa.org/en/nevibecode/mcp/edgartools.md) — MCP server · ★ 2814
- [LetsFG — Flights & Hotels](https://affpapa.org/en/nevibecode/mcp/letsfg-flights-hotels.md) — MCP server · ★ 2188
- [AutoTS](https://affpapa.org/en/nevibecode/mcp/autots.md) — MCP server · ★ 1434

From the same set: [codespar/mcp-dev-latam](https://affpapa.org/en/nevibecode/by/codespar/mcp-dev-latam.md) — 124 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
