Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Search 209k+ US state bills, all 50 states + DC: full text, sponsors, votes, status. Free.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
适用于网页版、桌面版和手机版 Claude:
https://mcp.billcommons.org/mcp在终端中运行这条命令
claude mcp add --transport http bill-commons https://mcp.billcommons.org/mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"bill-commons": {
"url": "https://mcp.billcommons.org/mcp"
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"bill-commons": {
"type": "http",
"url": "https://mcp.billcommons.org/mcp"
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
ChatGPT 只能连接互联网上的服务器:
https://mcp.billcommons.org/mcp菜单名称可能因套餐和版本不同而略有差异。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
我们还没有读取这个服务器的工具列表;我们会轮流检查各个端点。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过域名 billcommons.org 验证(注册中心会核实域名所有权)
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
尚未检查;我们会轮流检查各个端点
尚未检查;我们会轮流检查各个端点
尚未检查;我们会在检查端点时读取工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在作者的云端运行。通过互联网连接,无需安装,但你发送的内容会经过作者的服务器。
GitHub 仓库最后更新于–,最新版本(1.0.0)于3个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Bill Commons is a public, open-source legislative search platform covering the current session/biennium for all 50 U.S. states plus DC. It provides a web search UI, a REST API, an MCP (Model Context Protocol) server, and a public status/coverage page. Public infrastructure first: no paywall on ordinary search or reasonable API use — anonymous callers get a generous daily cap (2,000 requests/day per IP, 5,000/day per /24 subnet); a free API key raises that further, and only high-volume/bulk use is paid. See /docs/bulk for API keys and full-corpus snapshots.
See docs/architecture/ARCHITECTURE.md for the locked architecture and data model.
Hosted on Railway (project billcommons: api, mcp, worker services + managed Postgres) and Vercel (project billcommons-web). See docs/operations/deployment-runbook.md for the full deploy/rollback procedure.
The hosted MCP server gives AI assistants direct access to all 209k+ bills — no API key, no setup beyond one command:
claude mcp add bill-commons --transport http https://mcp.billcommons.org/mcp
Claude Desktop: Settings → Connectors → Add custom connector with URL https://mcp.billcommons.org/mcp. Cursor and other clients: add the same URL as a Streamable HTTP server in mcp.json.
Ten tools including search_legislation, get_bill_record, compare_bill_versions, and trace_legislative_history. Full walkthrough (including REST recipes for agents without MCP): https://billcommons.org/docs/agents
┌─────────────┐
users ─────────▶ │ apps/web │ Next.js, billcommons.org │ (Vercel) │ status.billcommons.org (rewrite → /coverage) └──────┬──────┘ │ HTTPS (NEXT_PUBLIC_API_BASE) ▼ ┌─────────────┐ ┌──────────────┐ │ apps/api │◀──────▶│ apps/mcp │ Streamable HTTP │ FastAPI │ │ 10 MCP tools│ mcp.billcommons.org │ /api/v1 │ └──────────────┘ │ api.billcommons.org └──────┬──────┘ │ reads (SQLAlchemy) ▼ ┌─────────────────────────────┐ │ Postgres 16 (Railway) │ │ jurisdictions, sessions, │ │ bills, actions, sponsorships,│ │ votes, ingest_jobs, coverage │ └──────────────▲──────────────┘ │ writes (idempotent upserts) ┌──────────────┴──────────────┐ │ workers/ingest (worker svc) │ │ autoboot: seed → bootstrap →│ │ schedule-refresh → job loop │ │ sources: Open States bulk CSV│ │ (T2 bootstrap) + v3 API (T2 │ │ incremental, OPENSTATES_API_ │ │ KEY) + full-text fetcher │ └──────────────┬──────────────┘ ▼ RawStore (filesystem, RAWSTORE_ROOT volume in prod) — sha256-addressed raw payload archive
packages/schema (SQLAlchemy models + Alembic) is the single source of truth every other package/app imports from — no service owns its own copy of the data model.
apps/web Next.js 15 (App Router, TS) — search UI + status page
apps/api FastAPI — REST API (/api/v1) apps/mcp MCP server (Streamable HTTP, mounted at /mcp) workers/ingest Ingestion workers, job queue, per-source adapters packages/schema SQLAlchemy models + Alembic migrations (single source of truth) packages/shared Shared Python utils: bill-number normalization, rawstore, http client packages/source-registry Per-jurisdiction source registry (data + loader) packages/search Search SQL builders / query parsing infra/docker Dockerfiles + docker-compose.yml (local stack) infra/deployment Railway/Vercel configs, DNS runbook docs/ Architecture, API, sources, operations, state-coverage docs data/registry Machine-readable registry (sessions, sources)
pg_trgm, unaccent, pgcrypto extensions available)apps/web)python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
This installs packages/schema and packages/shared as editable installs (single source of truth for the data model + shared utils), plus the worker package: .venv/bin/pip install -e workers/ingest. Install the API package too if you're working on it: .venv/bin/pip install -e apps/api.
Set DATABASE_URL in your environment (or in ~/.config/billcommons/.env, which is read as a fallback and is never committed):
DATABASE_URL=postgresql://user:password@host:port/dbname
Requires Postgres 16 with the pg_trgm and unaccent extensions available (created by migration 0001). Run migrations:
cd packages/schema
../../.venv/bin/alembic upgrade head
# Seed all 51 jurisdictions/sessions/coverage rows from the registry:
.venv/bin/python -m billcommons_ingest seed-registry
python3 workers/ingest/download_bulk.py --only NC .venv/bin/python -m billcommons_ingest bootstrap --state NC --zip data/bulkzips/NC_2025.zip .venv/bin/python -m billcommons_ingest recompute-coverage
# API (FastAPI, http://localhost:8000, docs at /docs)
.venv/bin/uvicorn main:app --app-dir apps/api --reload --port 8000
.venv/bin/python apps/mcp/server.py
.venv/bin/python -m billcommons_ingest worker
cd apps/web npm install NEXT_PUBLIC_API_BASE=http://localhost:8000 npm run dev
.venv/bin/pytest packages/shared/tests
.venv/bin/pytest workers/ingest/tests .venv/bin/pytest apps/api/tests
cd infra/docker
docker compose up --build
This brings up Postgres, the API, the ingestion worker, and the MCP server. The web app (apps/web) is run separately via npm run dev during local development (see infra/docker/docker-compose.yml for the placeholder service definition).
docs/architecture/ARCHITECTURE.md — locked architecture + data modeldocs/SPEC.md — requirements digest / acceptance gatedocs/operations/deployment-runbook.md — Railway/Vercel deploy, rollback, smoke checklistdocs/operations/ingestion-runbook.md — CLI reference, job queue, refresh cadencedocs/operations/source-failure-runbook.md — stale zips, 401/429, robots blocksdocs/operations/backup-restore.md — pg_dump/restore, raw-data re-fetchdocs/operations/add-a-jurisdiction.md — onboarding a new territory/statedocs/state-coverage/methodology.md — coverage state machine, GREEN criteriadocs/api/examples.md — curl/Python/JavaScript examples against the live APIdocs/sources/openstates-csv.md — Open States bulk CSV column mappingApache-2.0. See LICENSE and NOTICE for data attribution (Open States / Plural Policy, public-domain legislative data).
See CONTRIBUTING.md. This project follows the Contributor Covenant.
See SECURITY.md for responsible disclosure.