mcpField
M
mcp-pluggy

mcp-pluggy

Local
github.com/codesparFinance275Updated 4w ago

About mcp-pluggy

mcp-pluggy is an MCP server for Pluggy, an Open Finance Brasil aggregator. It targets applications that read bank accounts and transactions or initiate payments in Brazil through one API instead of integrating each bank separately.

Key features

  1. 01Account, transaction and identity queries
  2. 02Create, update and delete bank connections
  3. 03Connect token generation for Pluggy Connect
  4. 04Payment intent creation and status polling
  5. 05Sandbox connectors for testing

Use cases

  1. 01Reading accounts and transactions across Brazilian banks for a finance app
  2. 02Initiating payment intents and polling their status from an agent workflow
  3. 03Testing bank data connection flows in the sandbox environment

MCP support

This project is an MCP server that exposes 16 tools to MCP clients, covering connectors, bank connections, accounts, transactions, identities and payment intents.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"codespar-mcp-pluggy": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-pluggy"
],
"env": {
"PLUGGY_CLIENT_ID": "<PLUGGY_CLIENT_ID>",
"PLUGGY_CLIENT_SECRET": "<PLUGGY_CLIENT_SECRET>"
}
}
}
}
Run commandnpx -y @codespar/mcp-pluggy
Environment variables to set
PLUGGY_CLIENT_IDSecretPluggy client ID issued at https://dashboard.pluggy.ai
PLUGGY_CLIENT_SECRETSecretPluggy client secret

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@codespar/mcp-pluggy0.1.2

Tools

16

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
namestringNoFilter by connector name (partial match)
typesstringNoComma-separated types (PERSONAL_BANK, BUSINESS_BANK, INVESTMENT, ...)
sandboxbooleanNoInclude sandbox connectors
countriesstringNoComma-separated country codes (default BR)

Details

From the project README

@codespar/mcp-pluggy

MCP server for Pluggy — Open Finance Brasil aggregator (ITP/TPP). Pluggy holds the ICP-Brasil certificate and runs Dynamic Client Registration with each Brazilian bank, so you integrate against one API instead of N.

Quick Start

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "pluggy": {
      "command": "npx",
      "args": ["@codespar/mcp-pluggy"],
      "env": {
        "PLUGGY_CLIENT_ID": "your-client-id",
        "PLUGGY_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}
Cursor / VS Code

Same config in .cursor/mcp.json or VS Code's MCP integration.

Tools (16)

Connectors + categories
ToolPluggy endpointNotes
list_connectorsGET /connectorsFilter by name / types / countries / sandbox
get_connectorGET /connectors/{id}Single connector definition
list_categoriesGET /categoriesTransaction categorization taxonomy
Connect token
ToolPluggy endpointNotes
create_connect_tokenPOST /connect_tokenEmbed Pluggy Connect widget on the client
Items (bank connections)
ToolPluggy endpointNotes
create_itemPOST /itemsNew bank connection from credentials
list_itemsGET /itemsLists existing connections
get_itemGET /items/{id}Single connection
update_itemPATCH /items/{id}Refresh credentials / trigger sync
delete_itemDELETE /items/{id}Revoke connection
Accounts + transactions + identity
ToolPluggy endpointNotes
list_accountsGET /accounts?itemId=...Checking / savings / credit / investment
get_accountGET /accounts/{id}Single account
list_transactionsGET /transactions?accountId=...Date-range filter
get_transactionGET /transactions/{id}Single transaction
list_identitiesGET /identity?itemId=...Legal name + document + address
Payments (PISP)
ToolPluggy endpointNotes
create_payment_intentPOST /payments/intentsInitiate a Pluggy Payments intent
get_payment_intentGET /payments/intents/{id}Poll status

Authentication

Pluggy uses an OAuth2 client-credentials flow:

  1. Client obtains an API key by POST /auth with clientId + clientSecret
  2. Subsequent requests include the API key as X-API-KEY

Issue credentials at the Pluggy dashboard:

Sandbox / Testing

Pluggy provides sandbox connectors with synthetic accounts and transactions. The sandbox uses the same API endpoint (https://api.pluggy.ai); the connector list returned by /connectors includes sandbox banks (Pluggy Bank, BR · Pluggy Bank).

Environment Variables

VariableRequiredDescription
PLUGGY_CLIENT_IDyesClient ID from the Pluggy dashboard
PLUGGY_CLIENT_SECRETyesClient secret from the Pluggy dashboard
PLUGGY_API_BASEnoOverride API base (default https://api.pluggy.ai)

Why use Pluggy via CodeSpar

If you only need the MCP server, install the package directly. If you're building a commerce agent that needs Pluggy + Pix + NF-e + WhatsApp + dashboard governance, look at the managed tier.

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.