cdgmcp
Exposes a Congress.gov-style legislative GraphQL API to MCP clients, enabling querying bills, actions, committee activities, and cosponsors via natural language.
README
cdgmcp
A Model Context Protocol (MCP) server that exposes a Congress.gov-style legislative GraphQL API to MCP clients (such as VS Code, Claude Desktop, or other agents). It provides high-level tools for querying bills, actions, committee activities and cosponsors, plus a raw GraphQL escape hatch for advanced queries.
Features
Tools
| Tool | Description |
|---|---|
search_bills |
Search/list bills with filters (congress, chamber, type, title, latest action, dates, sponsor). |
get_bill |
Fetch a single bill's full details, with optional actions, cosponsors, committee activities, titles and text versions. |
search_committee_activities |
Find committee referrals/activities and their related bills. |
search_actions |
Search the legislative action history (e.g. "Passed House", "Became Public Law"). |
search_cosponsors |
Search cosponsorship records across bills. |
get_node |
Fetch any object directly by its Relay global id. |
graphql_query |
Run an arbitrary read-only GraphQL query (mutations rejected). |
The API is built with Hot Chocolate 16.2.0 and follows Relay conventions. The
search tools are connection-based: each returns pageInfo.endCursor, which you
can pass back as the after argument to fetch the next page.
Resources
| URI | Description |
|---|---|
cdg://schema |
The live GraphQL schema (SDL). |
cdg://guide |
Data model and usage guide. |
cdg://endpoint |
The configured GraphQL endpoint. |
Example questions it can answer
- What bills have been recently introduced in the House or Senate?
- What bills have passed the House or Senate and became law recently?
- What bills have been referred to the Commerce Committee recently?
- Of the bills referred to the Agriculture Committee, which cosponsors recur across them?
Configuration
The GraphQL endpoint defaults to http://dotnet10-dev:5208/graphql/. Override
it with the CDG_GRAPHQL_ENDPOINT environment variable.
Build & run
npm install
npm run build
npm start # or: node dist/index.js
For development (no build step) use:
npm run dev # runs src/index.ts via tsx
Use with VS Code
Add to your .vscode/mcp.json (or user mcp.json):
{
"servers": {
"cdgmcp": {
"command": "node",
"args": ["${workspaceFolder}/cdgmcp/dist/index.js"],
"env": {
"CDG_GRAPHQL_ENDPOINT": "http://dotnet10-dev:5208/graphql/"
}
}
}
}
The server communicates over stdio.
This is supposed to be a standalone testing something, but I haven't seen it work.
HOST=0.0.0.0 npx @modelcontextprotocol/inspector node dist/index.js
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.