Used for issue tracking, bug reports and feature requests for the Congress.gov API service.
Supports deployment of the Congress.gov API server with configuration via Procfile for automatic scaling and environment management.
Provides email service functionality for sending authentication magic links and other communications to users of the congressional data service.
Handles payment processing for subscription tiers, supporting monthly and annual billing for Pro tier access with increased API call limits.
Used for database functionality including user authentication, usage tracking, and storing API usage statistics for the congressional data service.
Congress.gov API MCP Server
🎉 Production Ready - Complete Legislative Data Access via 6 Toolsets
This Model Context Protocol (MCP) server provides comprehensive access to the Congress.gov API through 6 organized toolsets, enabling AI systems to retrieve and interact with legislative data from the United States Congress with a clean, unified interface.
🎯 Complete Access: 6 Toolsets • 92 Operations • All Functions Available
🚀 Quick Start
1. Get Your API Key
Visit congressmcp.lawgiver.ai to register and get your API key.
2. Install via NPM (Recommended)
3. Configure Your MCP Client
Add this to your MCP client configuration (e.g., Claude Desktop):
4. Restart Your MCP Client
You'll now have access to 6 organized toolsets covering 92 congressional operations!
🗂️ Toolset Architecture (v1.6.0)
🎯 Major Achievement: 87+ Tools → 6 Organized Toolsets
We've successfully consolidated 87+ individual tools into 6 logical, organized toolsets for a dramatically improved user experience. All operations are now available to all users, with rate limiting based on tier:
1. 📋 Legislation Hub (legislation_hub
)
Consolidates: Bills, Amendments, Summaries, Treaties
Operations: 24 total (all available)
- Bills: Search, details, text, actions, amendments, cosponsors, subjects
- Amendments: Search, details, actions, sponsors
- Summaries: Bill summaries with keyword search
- Treaties: Search, actions, committees, text
2. 👥 Members and Committees (members_and_committees
)
Consolidates: Congressional Members, Committees, Committee Operations
Operations: 13 total (all available)
- Members: Search, details, sponsored/cosponsored legislation
- Committees: Search, bills, reports, communications, nominations
3. 🗳️ Voting and Nominations (voting_and_nominations
)
Consolidates: House Votes, Nominations
Operations: 14 total (all available)
- House Votes: By Congress/session, details, member votes, XML data
- Nominations: Search, details, actions, committees, hearings
4. 📰 Records and Hearings (records_and_hearings
)
Consolidates: Congressional Records, Communications, Hearings
Operations: 16 total (all available)
- Congressional Records: Daily/bound records, search functionality
- Communications: House/Senate communications, requirements
- Hearings: Search, details, content by Congress/chamber
5. 📊 Committee Intelligence (committee_intelligence
)
Consolidates: Committee Reports, Prints, Meetings
Operations: 19 total (all available)
- Committee Reports: Latest, by Congress/type, details, content
- Committee Prints: Latest, by Congress/chamber, details
- Committee Meetings: Latest, by Congress/chamber/committee, search
6. 🔬 Research and Professional (research_and_professional
)
Consolidates: Congress Information, CRS Reports
Operations: 6 total (all available)
- Congress Info: Basic and enhanced Congress information
- CRS Reports: Congressional Research Service report search
- Professional Analytics: Enhanced research capabilities
🏗️ Architecture Overview
Toolset Design
Each toolset accepts an operation
parameter to route to specific functionality:
Access Control
- Universal Access: All operations available to all users
- Rate Limiting: Free tier gets 200 calls/month, Pro tier gets 5000 calls/month
- Usage Tracking: Clear monitoring of API call usage and limits
API Reliability Framework
- Parameter Validation: Comprehensive input validation for all operations
- Defensive API Calls: Retry logic and timeout handling for external requests
- Response Processing: Standardized deduplication and error handling
- Enhanced Error Messages: User-friendly error responses with operation guidance
📁 Project Structure
🚀 Deployment
Production Deployment
The server is deployed at api-cmcp.lawgiver.ai
with:
- SSL/TLS encryption
- Automatic scaling
- Environment-based configuration
- Health monitoring
Local Development
- Clone the repository:
- Set up environment:
- Install dependencies:
- Run the server:
Environment Configuration
Core Configuration:
CONGRESS_API_KEY
: Your Congress.gov API key (required)ENABLE_AUTH
: Enable authentication (default: true)ENABLE_DATABASE
: Enable database features (default: true)ENABLE_STRIPE
: Enable payment integration (default: true)
Authentication:
LAWGIVER_JWT_SECRET
: JWT secret for authenticationLAWGIVER_API_KEYS
: API keys for user authentication (format: tier:user:key)ADMIN_API_KEY
: Admin API key for key managementENABLE_KEY_MANAGEMENT
: Enable admin key management (default: false)
Database (Supabase):
SUPABASE_URL
: Supabase project URLSUPABASE_ANON_KEY
: Supabase anonymous keySUPABASE_SERVICE_KEY
: Supabase service role key
Payment Processing (Stripe):
STRIPE_SECRET_KEY
: Stripe secret keySTRIPE_WEBHOOK_SECRET
: Stripe webhook secretSTRIPE_PRICE_PRO_MONTHLY
: Stripe price ID for Pro monthlySTRIPE_PRICE_PRO_ANNUAL
: Stripe price ID for Pro annual
Email Service (Resend):
RESEND_API_KEY
: Resend API keyRESEND_FROM_EMAIL
: From email addressFRONTEND_BASE_URL
: Frontend URL for magic linksMAGIC_LINK_EXPIRY_MINUTES
: Magic link expiry time (default: 60)
See .env.example
for complete configuration with examples.
🧪 Testing
Run Tests
Test Coverage
- Toolset Operations: Operation routing and validation tests for each of the 6 toolsets
- Core Features: Selected tests for key functionality (amendments, email system)
- Authentication: User registration, email templates, and API key validation tests
- Integration: Basic endpoint testing with real API responses
📚 Documentation
Repository Documentation
- API_RELIABILITY_GUIDE.md: Comprehensive reliability framework documentation
- TOOL_CONSOLIDATION_PLAN.md: Bucket architecture implementation details
External Documentation
- GitHub Issues: Bug reports and feature requests
- Website: congressmcp.lawgiver.ai for setup guides and API documentation
🔧 Development
Adding New Operations
- Implement internal function in appropriate feature file
- Add operation to toolset in relevant toolset tool
- Update operation sets (add to FREE_OPERATIONS and ALL_OPERATIONS)
- Add comprehensive tests for the new operation
- Update documentation with operation details
Toolset Pattern
🎯 Key Benefits
For Users
- Simplified Discovery: 6 logical toolsets instead of 87+ scattered tools
- Universal Access: All 92 operations available regardless of tier
- Consistent Interface: Unified parameter handling across all operations
- Clear Documentation: Detailed operation descriptions and examples
- Reliable Performance: Comprehensive error handling and retry logic
For Developers
- Easier Maintenance: Centralized logic and consistent patterns
- Better Testing: Focused test suites per toolset
- Reduced Complexity: Eliminated 87 individual tool registrations
- Improved Organization: Clear separation between interfaces and implementations
- Open Source Ready: Easy configuration for self-hosting without commercial features
📊 Version History
v1.6.0 - Universal Free Access
- Major Achievement: All 92 operations now available to free users
- Simplified Tiers: Rate limiting (200/5000 calls) instead of function restrictions
- Open Source Ready: Architecture supports easy deployment without commercial features
- Enhanced UX: Simplified tool discovery and universal access
v1.5.0 - Toolset Architecture Complete
- Major Achievement: Consolidated 87+ tools into 6 organized toolsets
- Enhanced UX: Simplified tool discovery and consistent interfaces
- Access Control: Operation-level tier management within toolsets
- API Reliability: Full reliability framework integration
Previous Versions
See CHANGELOG.md for complete version history.
🤝 Contributing
- Fork the repository
- Create a feature branch
- Implement changes with tests
- Update documentation
- Submit a pull request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🆘 Support
- Issues: GitHub Issues
- Email: support@lawgiver.ai
- Website: congressmcp.lawgiver.ai
This server cannot be installed
The open Congress.gov MCP server. Provides comprehensive access to the Congress.gov API through 6 organized toolsets, enabling AI systems to retrieve and interact with legislative data from the United States Congress with a clean, unified interface.
Related MCP Servers
- -securityAlicense-qualityAn MCP server that exposes HTTP methods defined in an OpenAPI specification as tools, enabling interaction with APIs via the Model Context Protocol.Last updated -2PythonMIT License
- AsecurityAlicenseAqualityAn MCP server that provides access to government datasets from Data.gov, enabling users to search packages, view dataset details, list groups and tags, and access resources by URL.Last updated -475JavaScriptMIT License
CoinStats MCP Serverofficial
AsecurityAlicenseAqualityMCP Server for the CoinStats API. Provides access to cryptocurrency market data, portfolio tracking, and news.Last updated -30173TypeScriptMIT License- TypeScriptMIT License