Skip to main content
Glama
danielsuguimoto

pluggy-mcp

pluggy-mcp

一个远程 Model Context Protocol 服务器,封装了 Pluggy API 的数据产品接口,部署在 Cloudflare Workers 上。

使用 Cloudflare Agents(McpAgent)构建,采用 Streamable HTTP 传输。

工具

在 Pluggy 的数据产品中暴露了 25 个工具:

领域

工具

项目

list_items、retrieve_item、create_item、update_item、delete_item、send_item_mfa

账户

list_accounts、retrieve_account、get_real_time_balance

交易

list_transactions、retrieve_transaction、update_transaction_category

投资

list_investments、retrieve_investment、list_investment_transactions

身份

find_identity_by_item、retrieve_identity

类别

list_categories、retrieve_category

贷款

list_loans、retrieve_loan

信用卡账单

list_bills、retrieve_bill

连接器

list_connectors、retrieve_connector

支付、webhooks 和 Smart Transfers 不在范围内。

Related MCP server: Copiloto Financeiro MCP Server

身份验证

MCP 客户端在每个请求中使用 Bearer 令牌进行身份验证:

Authorization: Bearer <base64(clientId:clientSecret)>

生成令牌:

printf '%s:%s' "$PLUGGY_CLIENT_ID" "$PLUGGY_CLIENT_SECRET" | base64

Worker 解码令牌,通过 POST /auth 生成一个短期有效的 Pluggy API 密钥(2 小时 TTL,在过期前 5 分钟刷新),并在所有 Pluggy API 调用中将其作为 X-API-KEY 发送。Pluggy 凭据永远不会到达 MCP 客户端。

开发

npm install
npm run dev   # wrangler dev on http://127.0.0.1:8787

部署

npx wrangler deploy

连接

Cursor

~/.cursor/mcp.json:

{
  "mcpServers": {
    "pluggy": {
      "url": "https://<your-worker>.<your-subdomain>.workers.dev/mcp",
      "headers": { "Authorization": "Bearer <base64(clientId:clientSecret)>" }
    }
  }
}

Claude Desktop / Windsurf

结构相同,只是配置文件不同(claude_desktop_config.json / ~/.codeium/windsurf/mcp_config.json)。

备注

  • list_items 是 Pluggy 的可选功能。在 Pluggy 支持团队为你的团队启用之前,它会返回 403 LIST_ITEMS_FEATURE_NOT_ENABLED。

  • list_transactions 使用基于游标的 GET /v2/transactions 端点。将上一个响应的 next 值中的 after 游标传入以进行分页。

  • Durable Object 在会话生命周期内持久保存会话和生成的 API 密钥;凭据通过 Worker fetch 处理器按请求传入 ctx.props。

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server for the Pluggy Open Finance Brazil API, enabling connection to bank accounts and management of financial data including transactions, accounts, investments, and payment intents through natural language.
    10 npm
    MIT
  • F
    license
    Not graded
    quality
    B
    maintenance
    Enables AI agents to manage personal finances for Brazilian users through MCP tools, including categorizing transactions, reconciling debts, checking cash-flow projections, and adjusting budgets, with integration to Open Finance Brasil via Pluggy.
    -
  • A
    license
    Not graded
    quality
    B
    maintenance
    A read-only MCP server exposing Brazilian Open Finance personal financial data from Pluggy to MCP clients, enabling listing of connections, accounts, transactions, credit card bills, investments, and loans without moving money.
    2
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Enables managing cTrader accounts, viewing market data, and handling positions and orders through 16 MCP tools with secure authentication.
    16
    MIT