MCP server for Open Finance Brasil — accounts, transactions, consents, credit, loans, investments
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add open-finance --env OPEN_FINANCE_CLIENT_SECRET='<OPEN_FINANCE_CLIENT_SECRET>' -- npx -y @codespar/mcp-open-finance~/.codex/config.toml
[mcp_servers.open-finance]
command = "npx"
args = ["-y", "@codespar/mcp-open-finance"]
env = { OPEN_FINANCE_CLIENT_SECRET = "<OPEN_FINANCE_CLIENT_SECRET>" }
# codex mcp add open-finance --env OPEN_FINANCE_CLIENT_SECRET='<OPEN_FINANCE_CLIENT_SECRET>' -- npx -y @codespar/mcp-open-finance~/.cursor/mcp.json
{
"mcpServers": {
"open-finance": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-open-finance"
],
"env": {
"OPEN_FINANCE_CLIENT_SECRET": "<OPEN_FINANCE_CLIENT_SECRET>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"open-finance": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@codespar/mcp-open-finance"
],
"env": {
"OPEN_FINANCE_CLIENT_SECRET": "<OPEN_FINANCE_CLIENT_SECRET>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"open-finance": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-open-finance"
],
"env": {
"OPEN_FINANCE_CLIENT_SECRET": "<OPEN_FINANCE_CLIENT_SECRET>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"open-finance": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-open-finance"
],
"env": {
"OPEN_FINANCE_CLIENT_SECRET": "<OPEN_FINANCE_CLIENT_SECRET>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"open-finance": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-open-finance"
],
"env": {
"OPEN_FINANCE_CLIENT_SECRET": "<OPEN_FINANCE_CLIENT_SECRET>"
}
}
}
}需要的环境变量
OPEN_FINANCE_CLIENT_SECRET
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。