你是否曾好奇美国国会在忙些什么?是否厌倦了通过阅读新闻来了解相关信息?现在,你可以直接向美国国会API询问。这是一个非官方的 Congress.gov API MCP服务器。
本项目提供了一个非官方的MCP服务器,用于访问Congress.gov API,你可以通过它直接获取美国国会的相关信息。
若要通过 Smithery 自动为Claude Desktop安装 congress_gov_mcp
,请执行以下命令:
npx -y @smithery/cli install @AshwinSundar/congress_gov_mcp --client claude
curl -LsSf https://astral.sh/uv/install.sh | sh
git clone http://github.com/AshwinSundar/congress_gov_mcp
cd congress_gov_mcp
uv sync
.env
文件:cp .env.template .env
.env
文件中:
congress_gov_mcp/.env
CONGRESS_GOV_API_KEY="your-api-key-here"
uv
安装的绝对路径:which uv
mcpServers
块中:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"congress_gov_mcp": {
"command": "/absolute_path/to/uv",
"args": [
"run",
"/absolute_path_to/congress_gov_mcp/server.py"
]
}
}
}
.mcp.json
文件的 mcpServers
块中:{
"mcpServers": {
"congress_gov_mcp": {
"command": "uv",
"args": [
"run",
"/absolute_path_to/congress_gov_mcp/server.py"
]
}
}
}