Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Exposes a Congress.gov-style legislative GraphQL API to MCP clients, enabling querying bills, actions, committee activities, and cosponsors via natural language.

README.md

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

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Other servers.