home / mcp / opendiscourse mcp server
Provides access to GovInfo and Congress.gov data, bulk ingestion, and AI-driven code reviews via an MCP server.
Configuration
View docs{
"mcpServers": {
"cbwinslow-opendiscourse_mcp": {
"command": "node",
"args": [
"/path/to/opendiscourse_mcp/src/index.js"
],
"env": {
"GOVINFO_API_KEY": "YOUR_GOVINFO_API_KEY",
"CONGRESS_API_KEY": "YOUR_CONGRESS_API_KEY"
}
}
}
}OpenDiscourse MCP provides server-side access to GovInfo and Congress.gov data, with automated bulk data ingestion and AI-powered code review capabilities. It enables you to query extensive legislative and governmental information, ingest large data sets, and run multi-agent AI reviews to improve code quality and security.
You run a local MCP server and connect your client or assistant to it via a local stdio interface. The server exposes a suite of data endpoints for GovInfo and Congress.gov, supports bulk data ingestion, and provides AI-driven code review capabilities. You can start by launching the MCP server, then use your client to request documents, bills, members, and other government data, or trigger ingestion and AI reviews from your automation scripts.
Prerequisites you need before installation are in place to run the MCP server and its tooling.
# Prerequisites
node -v
npm -v
python3 --version
postgres --version
bw --version
# Clone the project
git clone https://github.com/cbwinslow/opendiscourse_mcp.git
cd opendiscourse_mcp
# Install Node.js dependencies
npm install
# Install Bitwarden CLI
npm install -g @bitwarden/cli
# Set up the database
./scripts/setup_database.sh
# Set up API keys with Bitwarden
python3 scripts/setup_bitwarden.py
# Start the MCP server
npm startSet up API keys and environment variables to enable data access and secure operation.
{
"mcpServers": {
"opendiscourse": {
"command": "node",
"args": ["/path/to/opendiscourse_mcp/src/index.js"],
"env": {
"GOVINFO_API_KEY": "your_govinfo_key",
"CONGRESS_API_KEY": "your_congress_key"
}
}
}
}The MCP server includes an AI code review suite with specialized agents for security, performance, quality, and documentation reviews. Observability is supported through Langfuse integration to provide monitoring and tracing of the review pipelines.
GovInfo and Congress.gov data endpoints span bills, records, nominations, and legislative activities, along with bulk data ingestion for historical and comprehensive access. Ingestion supports 113thβ123rd Congress (2013β2024), parallel processing with 50 workers, XML validation, resume-on-skip, and progress reporting.
To connect Claude Desktop to the MCP server, add a configuration entry with the runtime command and API keys as environment variables.
{
"mcpServers": {
"opendiscourse": {
"command": "node",
"args": ["/path/to/opendiscourse_mcp/src/index.js"],
"env": {
"GOVINFO_API_KEY": "your_govinfo_key",
"CONGRESS_API_KEY": "your_congress_key"
}
}
}
}List GovInfo collections updated since a specific date.
Get detailed information about a GovInfo package.
List granules within a GovInfo package.
Get detailed information about a GovInfo granule.
Download content such as PDF, XML, or HTML from GovInfo.
Get detailed information about a Congress.gov bill.
Search for bills by text query on Congress.gov.
Get legislative actions for a Congress.gov bill.
Get full text of a Congress.gov bill.
Search for members of Congress.
Get detailed information about a Congress member.
Get committee meetings data from Congress.gov.
Get presidential nominations data from Congress.gov.
Run comprehensive GovInfo bulk data ingestion.
Ingest all GovInfo data for specified congress and document types.
Security review of code and configurations.
Performance bottleneck analysis and optimization suggestions.
Quality assessment of code, tests, and architecture.
Documentation quality review and improvements.
Original comprehensive code review.
Test Bitwarden integration for API key management.
Set up API keys from Bitwarden into the environment.