Accesses Federal Election Commission campaign finance data through the OpenFEC API: candidates, committees, contributions and spending.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add openfec --env OPENFEC_API_KEY='<OPENFEC_API_KEY>' -- node /absolute/path/to/mcp-openfec/build/server.js~/.codex/config.toml
[mcp_servers.openfec]
command = "node"
args = ["/absolute/path/to/mcp-openfec/build/server.js"]
env = { OPENFEC_API_KEY = "<OPENFEC_API_KEY>" }
# codex mcp add openfec --env OPENFEC_API_KEY='<OPENFEC_API_KEY>' -- node /absolute/path/to/mcp-openfec/build/server.js~/.cursor/mcp.json
{
"mcpServers": {
"openfec": {
"command": "node",
"args": [
"/absolute/path/to/mcp-openfec/build/server.js"
],
"env": {
"OPENFEC_API_KEY": "<OPENFEC_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"openfec": {
"type": "stdio",
"command": "node",
"args": [
"/absolute/path/to/mcp-openfec/build/server.js"
],
"env": {
"OPENFEC_API_KEY": "<OPENFEC_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"openfec": {
"command": "node",
"args": [
"/absolute/path/to/mcp-openfec/build/server.js"
],
"env": {
"OPENFEC_API_KEY": "<OPENFEC_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"openfec": {
"command": "node",
"args": [
"/absolute/path/to/mcp-openfec/build/server.js"
],
"env": {
"OPENFEC_API_KEY": "<OPENFEC_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"openfec": {
"command": "node",
"args": [
"/absolute/path/to/mcp-openfec/build/server.js"
],
"env": {
"OPENFEC_API_KEY": "<OPENFEC_API_KEY>"
}
}
}
}Environment variables
OPENFEC_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.