cdgmcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cdgmcpWhat bills were introduced in the House yesterday?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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/list bills with filters (congress, chamber, type, title, latest action, dates, sponsor). |
| Fetch a single bill's full details, with optional actions, cosponsors, committee activities, titles and text versions. |
| Find committee referrals/activities and their related bills. |
| Search the legislative action history (e.g. "Passed House", "Became Public Law"). |
| Search cosponsorship records across bills. |
| Fetch any object directly by its Relay global |
| 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 |
| The live GraphQL schema (SDL). |
| Data model and usage guide. |
| The configured GraphQL endpoint. |
Related MCP server: CongressMCP-full
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.jsFor development (no build step) use:
npm run dev # runs src/index.ts via tsxUse 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.jsMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityFmaintenanceAn MCP server for the Congress.gov API that consolidates 91 operations into 6 comprehensive legislative tools that can be used by any MCP client (i.e. Claude Desktop), or MCP-compatible AI agent, to query and reason about congressional data.101JavaScriptMIT
- AlicenseBqualityBmaintenanceThe 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.2032Sustainable Use v1.0
- Alicense-qualityDmaintenanceEnables querying U.S. legislative data from Congress.gov API using MCP resources for direct lookups and tools for searching and retrieving related data.8MIT
- Alicense-qualityCmaintenanceEnables querying legislative data from the LegiScan API, including bills and votes, via natural language through an MCP gateway.9MIT
Related MCP Connectors
GovTrack MCP — federal US Congress data (free, no auth)
Congress MCP — US Congress data via GovTrack API (free, no auth required)
Search bills and speaker-attributed hearing transcripts across all 50 US state legislatures.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/adathouse/cdgmcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server