Cover image
Try Now
2025-02-20

Un servidor de Protocolo de Contexto Modelo (MCP) que proporciona acceso a los datos de financiamiento de campañas de la Comisión Electoral Federal (FEC) a través de la API OpenFEC.

3 years

Works with Finder

1

Github Watches

3

Github Forks

1

Github Stars

MCP OpenFEC Server

A Model Context Protocol (MCP) server that provides access to Federal Election Commission (FEC) campaign finance data through the OpenFEC API.

Features

  • Search for candidates by name, state, or office
  • Get detailed candidate information and financial data
  • Access committee information
  • View individual contributions
  • Track independent expenditures
  • Access FEC filings and audit cases
  • Download bulk data

Requirements

Installation

  1. Clone the repository:
git clone https://github.com/psalzman/mcp-openfec
cd mcp-openfec
  1. Install dependencies:
npm install
  1. Create a .env file in the root directory and add your OpenFEC API key:
OPENFEC_API_KEY=your_api_key_here
  1. Build the server:
npm run build

Configuration

To use this MCP server with Claude Desktop:

  1. Locate your Claude Desktop configuration file:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json
  2. Add the following configuration to the file:

{
  "mcpServers": {
    "openfec": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-openfec/build/server.js"],
      "env": {
        "OPENFEC_API_KEY": "your_api_key_here"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Important configuration notes:

  1. Replace /absolute/path/to/mcp-openfec with the actual path where you cloned the repository
  2. Use absolute paths, not relative paths
  3. Set disabled to false to enable the server
  4. Keep autoApprove as an empty array for security
  5. Add your OpenFEC API key in the env section

Available Tools

  1. get_candidate: Get detailed information about a candidate
  2. get_candidate_financials: Get financial data for a candidate
  3. search_candidates: Search for candidates by name or other criteria
  4. get_committee: Get detailed information about a committee
  5. get_candidate_contributions: Get individual contributions for a candidate
  6. get_filings: Retrieve official FEC filings
  7. get_independent_expenditures: Get independent expenditures
  8. get_electioneering: Get electioneering communications
  9. get_party_coordinated_expenditures: Get party coordinated expenditures
  10. get_communication_costs: Get corporate/union communication costs
  11. get_audit_cases: Get FEC audit cases and findings
  12. get_bulk_downloads: Get links to bulk data downloads

Rate Limiting

The server implements rate limiting to comply with OpenFEC API guidelines:

  • 1000 requests per hour
  • Requests exceeding this limit will receive an error response

Development

To modify the server:

  1. Make changes to the TypeScript files in the src directory
  2. Rebuild the server:
npm run build

License

This project is licensed under the BSD 3-Clause License - a permissive open source license that ensures maximum freedom for users while maintaining attribution requirements. The license allows you to:

  • Use the code commercially
  • Modify the code
  • Distribute the code
  • Use the code privately

With three main conditions:

  1. You must include the original copyright notice
  2. You must include the license text in distributions
  3. You cannot use the names of contributors to endorse derived products without permission

The BSD 3-Clause License is widely used in academic and commercial settings, offering a good balance between permissiveness and protecting contributors.

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin feature/my-new-feature)
  5. Create a new Pull Request

Copyright

Copyright (c) 2025, Phillip Salzman & Foundry Peak, LLC. All rights reserved. Web: http://foundrypeak.com/

For licensing details, see the LICENSE file.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • XLwebDev.com
  • PR Professional: Guiding You to Get Media Placements and Publicity Quickly and Effectively

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • https://tovuti.be
  • Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven

  • ANGEL LEON
  • A world class elite tech co-founder entrepreneur, expert in software development, entrepreneurship, marketing, coaching style leadership and aligned with ambition for excellence, global market penetration and worldy perspectives.

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • OffchainLabs
  • Implementación de la prueba de estaca Ethereum

  • huahuayu
  • Una puerta de enlace de API unificada para integrar múltiples API de explorador de blockchain similar a Esterscan con soporte de protocolo de contexto modelo (MCP) para asistentes de IA.

  • deemkeen
  • Controle su MBOT2 con un combo de potencia: MQTT+MCP+LLM

  • jae-jae
  • Servidor MCP para obtener contenido de la página web con el navegador sin cabeza de dramaturgo.

    Reviews

    2 (1)
    Avatar
    user_ZqR4jQSD
    2025-04-17

    I've been using mcp-openfec extensively, and it's truly impressive. Developed by psalzman, this tool has proven to be essential for error correction coding tasks. The documentation is thorough and the functionality fits perfectly within my projects. Highly recommend checking it out at https://github.com/psalzman/mcp-openfec!