{
  "markdown": "<div align=\"center\">\n  <h1>@cyanheads/congressgov-mcp-server</h1>\n  <p><b>Access U.S. congressional data - bills, votes, members, committees - through MCP. STDIO & Streamable HTTP.</b>\n  <div>11 Tools • 5 Resources • 2 Prompts</div>\n  </p>\n</div>\n\n<div align=\"center\">\n\n[![Version](https://img.shields.io/badge/Version-0.7.0-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/congressgov-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^2.0.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/congressgov-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/congressgov-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^7.0.2-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.4.0-blueviolet.svg?style=flat-square)](https://bun.sh/)\n\n</div>\n\n<div align=\"center\">\n\n[![Install in Claude Desktop](https://img.shields.io/badge/Install_in-Claude_Desktop-D97757?style=for-the-badge&logo=anthropic&logoColor=white)](https://github.com/cyanheads/congressgov-mcp-server/releases/latest/download/congressgov-mcp-server.mcpb) [![Install in Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en/install-mcp?name=congressgov-mcp-server&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBjeWFuaGVhZHMvY29uZ3Jlc3Nnb3YtbWNwLXNlcnZlciJdLCJlbnYiOnsiQ09OR1JFU1NfQVBJX0tFWSI6InlvdXItYXBpLWtleSJ9fQ==) [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_Server-0098FF?style=for-the-badge&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect?url=vscode:mcp/install?%7B%22name%22%3A%22congressgov-mcp-server%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40cyanheads/congressgov-mcp-server%22%5D%2C%22env%22%3A%7B%22CONGRESS_API_KEY%22%3A%22your-api-key%22%7D%7D)\n\n[![Framework](https://img.shields.io/badge/Built%20on-@cyanheads/mcp--ts--core-67E8F9?style=flat-square)](https://www.npmjs.com/package/@cyanheads/mcp-ts-core)\n\n</div>\n\n<div align=\"center\">\n\n**Public Hosted Server:** [https://congressgov.caseyjhand.com/mcp](https://congressgov.caseyjhand.com/mcp)\n\n</div>\n\n---\n\n## Tools\n\nEleven read-only tools for querying U.S. legislative data:\n\n| Tool | Description |\n|:---|:---|\n| `congressgov_bill_lookup` | Browse and retrieve U.S. legislative bill data — actions, sponsors, summaries, text, related bills |\n| `congressgov_enacted_laws` | Browse enacted public and private laws by congress |\n| `congressgov_member_lookup` | Discover congressional members by state/district/congress, retrieve legislative portfolios |\n| `congressgov_committee_lookup` | Browse congressional committees and their legislation, reports, and nominations |\n| `congressgov_roll_votes` | Retrieve House and Senate roll call votes and individual member voting positions |\n| `congressgov_senate_nominations` | Browse presidential nominations to federal positions and track the Senate confirmation process |\n| `congressgov_bill_summaries` | Browse recent CRS bill summaries — the \"what's happening\" feed |\n| `congressgov_crs_reports` | Browse and retrieve nonpartisan CRS policy analysis reports |\n| `congressgov_committee_reports` | Browse and retrieve committee reports accompanying legislation |\n| `congressgov_daily_record` | Browse the daily Congressional Record — floor speeches, debates, and proceedings |\n| `congressgov_search_bills` | Keyword-search bill titles and CRS summaries via a local full-text mirror (opt-in, off by default) |\n\n### `congressgov_bill_lookup`\n\nBrowse and retrieve U.S. legislative bill data from Congress.gov.\n\n- Filter by congress number, bill type, and update-date range\n- Retrieve detailed sub-resources: actions, amendments, committees, cosponsors, related bills, subjects, summaries, text versions, and titles\n- `content` reads a text version's actual document text, a bounded character window at a time — pick the version with `textVersionIndex`, the window with `characterOffset`/`characterLimit`, and follow `nextOffset` to walk a full bill\n- `list` defaults to `order='recent'` (newest update-date first); pass `order='oldest'` for ascending\n- Pagination support for browsing large result sets\n\n---\n\n### `congressgov_member_lookup`\n\nDiscover congressional members and their legislative activity.\n\n- Browse by state, district, congress number, and chamber\n- Retrieve a member's sponsored and cosponsored legislation\n- Look up specific members by bioguide ID\n\n---\n\n### `congressgov_committee_lookup`\n\nBrowse congressional committees and their legislation, reports, and nominations.\n\n- Filter by chamber (House, Senate, Joint)\n- Retrieve committee bills, reports, and nominations\n- Detail and sub-resource lookups need only `committeeCode` — `chamber` is auto-detected from the code\n- Committee bills default to `order='recent'` (newest-first); pass `order='oldest'` for ascending update-date order\n\n---\n\n### `congressgov_roll_votes`\n\nRetrieve House and Senate roll call votes and individual member voting positions.\n\n- Set `chamber` to `house` (default, from the Congress.gov API) or `senate` (from the Senate's official LIS feed — the API exposes no Senate votes)\n- `list` browses votes by congress and session, newest first; pass `order='oldest'` for ascending\n- `get` returns the question, result, tallies, party breakdown, and associated bill/nomination/amendment\n- `members` returns each member's recorded position\n\n---\n\n### `congressgov_bill_summaries`\n\nBrowse recent CRS bill summaries.\n\n- Filter by congress and bill type\n- Browse chronologically to see what's moving through Congress\n\n---\n\n### `congressgov_crs_reports`\n\nBrowse and retrieve CRS reports — nonpartisan policy analyses written by subject-matter experts at the Library of Congress.\n\n- Browse the full report catalog\n- Retrieve individual reports by product number\n\n---\n\n### `congressgov_daily_record`\n\nBrowse the daily Congressional Record — floor speeches, debates, and legislative text published each day Congress is in session.\n\n- Browse volumes by congress number\n- Retrieve specific issue articles\n- `content` reads one article's actual text, selected by `articleIndex` and bounded by `characterOffset`/`characterLimit`\n\n---\n\n### `congressgov_search_bills`\n\nKeyword-search bill titles and CRS summaries against a local full-text mirror — the discovery path the Congress.gov API itself lacks.\n\n- **Opt-in:** off by default, and not offered to clients until `CONGRESS_MIRROR_ENABLED=true`. With the flag set but the index not yet built (`bun run mirror:init`), the tool is callable and answers with an empty result and a build-the-index notice\n- Narrow with `congress`, `billType`, and `originChamber` filters\n- Returns BM25-ranked matches with each bill's derived id, ready for a follow-up `congressgov_bill_lookup` call\n\n## Resources\n\n| URI Pattern | Description |\n|:---|:---|\n| `congress://current` | Current congress number, session dates, chamber info |\n| `congress://bill-types` | Reference table of valid bill type codes |\n| `congress://member/{bioguideId}` | Member profile by bioguide ID |\n| `congress://bill/{congress}/{billType}/{billNumber}` | Bill detail by congress, type, and number |\n| `congress://committee/{committeeCode}` | Committee detail by committee code |\n\n## Prompts\n\n| Prompt | Description |\n|:---|:---|\n| `congressgov_bill_analysis` | Structured framework for analyzing a bill |\n| `congressgov_legislative_research` | Research framework for a policy area across Congress |\n\n## Features\n\nBuilt on [`@cyanheads/mcp-ts-core`](https://github.com/cyanheads/mcp-ts-core):\n\n- Declarative tool definitions — single file per tool, framework handles registration and validation\n- Unified error handling across all tools\n- Pluggable auth (`none`, `jwt`, `oauth`)\n- Swappable storage backends: `in-memory`, `filesystem`, `Supabase`\n- Structured logging with optional OpenTelemetry tracing\n- Runs locally (stdio/HTTP) or in Docker from the same codebase\n\nCongress.gov-specific:\n\n- Type-safe client for the Congress.gov REST API v3\n- Optional API key from [api.data.gov](https://api.data.gov/signup/) — defaults to `DEMO_KEY` (30 req/hr); own key gets 5,000 req/hr\n- Automatic pagination and response normalization\n- Rate limiting awareness\n- All tools are read-only and idempotent\n\n## Getting started\n\n### Public Hosted Instance\n\nA public instance is available at `https://congressgov.caseyjhand.com/mcp` — no installation required. Point any MCP client at it via Streamable HTTP:\n\n```json\n{\n  \"mcpServers\": {\n    \"congressgov-mcp-server\": {\n      \"type\": \"streamable-http\",\n      \"url\": \"https://congressgov.caseyjhand.com/mcp\"\n    }\n  }\n}\n```\n\n### Self-Hosted / Local\n\nAdd the following to your MCP client configuration file.\n\n```json\n{\n  \"mcpServers\": {\n    \"congressgov-mcp-server\": {\n      \"type\": \"stdio\",\n      \"command\": \"bunx\",\n      \"args\": [\"@cyanheads/congressgov-mcp-server@latest\"],\n      \"env\": {\n        \"CONGRESS_API_KEY\": \"your-api-key\"\n      }\n    }\n  }\n}\n```\n\nOr with npx (no Bun required):\n\n```json\n{\n  \"mcpServers\": {\n    \"congressgov-mcp-server\": {\n      \"type\": \"stdio\",\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@cyanheads/congressgov-mcp-server@latest\"],\n      \"env\": {\n        \"CONGRESS_API_KEY\": \"your-api-key\"\n      }\n    }\n  }\n}\n```\n\nGet a free API key at [api.data.gov/signup](https://api.data.gov/signup/) for 5,000 req/hr. Without a key the server falls back to `DEMO_KEY` (30 req/hr).\n\n### Prerequisites\n\n- [Bun v1.3.2](https://bun.sh/) or higher.\n\n### Installation\n\n1. **Clone the repository:**\n\n```sh\ngit clone https://github.com/cyanheads/congressgov-mcp-server.git\n```\n\n2. **Navigate into the directory:**\n\n```sh\ncd congressgov-mcp-server\n```\n\n3. **Install dependencies:**\n\n```sh\nbun install\n```\n\n## Configuration\n\nAll configuration is validated at startup via Zod schemas in `src/config/server-config.ts`. Key environment variables:\n\n| Variable | Description | Default |\n|:---|:---|:---|\n| `CONGRESS_API_KEY` | Optional. API key from [api.data.gov](https://api.data.gov/signup/). Omit to use `DEMO_KEY` (30 req/hr); own key: 5,000 req/hr. | `DEMO_KEY` |\n| `CONGRESS_API_BASE_URL` | Congress.gov API base URL | `https://api.congress.gov/v3` |\n| `MCP_TRANSPORT_TYPE` | Transport: `stdio` or `http` | `stdio` |\n| `MCP_HTTP_PORT` | HTTP server port | `3010` |\n| `MCP_AUTH_MODE` | Authentication: `none`, `jwt`, or `oauth` | `none` |\n| `MCP_SESSION_MODE` | HTTP session mode: `auto`, `stateful`, or `stateless`. This server holds no per-session state; the Docker image runs `stateless`. | `auto` (resolves to `stateful`) |\n| `MCP_LOG_LEVEL` | Log level (`debug`, `info`, `warning`, `error`, etc.) | `info` |\n| `LOGS_DIR` | Directory for log files (Node.js only). | `<project-root>/logs` |\n| `STORAGE_PROVIDER_TYPE` | Storage backend | `in-memory` |\n| `OTEL_ENABLED` | Enable [OpenTelemetry instrumentation](https://github.com/cyanheads/mcp-ts-core/tree/main/docs/telemetry) (spans, metrics, completion logs) | `false` |\n\n## Running the server\n\n### Local development\n\n- **Build and run the production version:**\n\n  ```sh\n  bun run rebuild\n  bun run start:http   # or start:stdio\n  ```\n\n- **Run checks and tests:**\n  ```sh\n  bun run devcheck     # Lints, formats, type-checks\n  bun run test         # Runs test suite\n  ```\n\n### Docker\n\n```sh\ndocker build -t congressgov-mcp-server .\ndocker run -e CONGRESS_API_KEY=your-api-key -p 3010:3010 congressgov-mcp-server\n```\n\n## Project structure\n\n| Directory | Purpose |\n|:---|:---|\n| `src/mcp-server/tools/definitions/` | Tool definitions (`*.tool.ts`). Eleven Congress.gov tools. |\n| `src/mcp-server/resources/definitions/` | Resource definitions. Congress, bill, member, and committee resources. |\n| `src/mcp-server/prompts/definitions/` | Prompt definitions. Bill analysis and legislative research prompts. |\n| `src/services/congress-api/` | Congress.gov API client — auth, pagination, rate limiting. |\n| `src/config/` | Server-specific environment variable parsing and validation with Zod. |\n| `tests/` | Unit and integration tests, mirroring the `src/` structure. |\n\n## Development guide\n\nSee [`CLAUDE.md`](./CLAUDE.md) for development guidelines and architectural rules. The short version:\n\n- Handlers throw, framework catches — no `try/catch` in tool logic\n- Use `ctx.log` for logging, `ctx.state` for storage\n- All tools are read-only with `readOnlyHint: true` and `idempotentHint: true`\n\n## Contributing\n\nIssues and pull requests are welcome. Run checks and tests before submitting:\n\n```sh\nbun run devcheck\nbun run test\n```\n\n## License\n\nThis project is licensed under the Apache 2.0 License. See the [LICENSE](./LICENSE) file for details.\n",
  "bytes": 12951,
  "sha": "2f103719045ff46248a4664c350d723fb86410bbac7c097fc41cfadc9420bb50",
  "repo_slug": "cyanheads/congressgov-mcp-server",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_cyanheads_congressgov_mcp_serv_c5a45e90/readme"
}