LegiScan MCP Server

LegiScan MCP Server

Provides access to legislative data from all 50 US states through the LegiScan API, enabling comprehensive search and retrieval of bills, votes, legislators, and legislative session information.

Category
访问服务器

README

LegiScan MCP Server

CI License: MIT Node TypeScript

A Model Context Protocol (MCP) server that provides access to the LegiScan API for legislative data from all 50 US states and Congress.

Features

  • 10 Streamlined MCP Tools optimized for legislative research workflows
  • Composite tools that batch multiple API calls (90%+ reduction in API usage)
  • Full TypeScript type definitions for all API responses
  • Bill number normalization (handles AB 858, AB858, AB-858 formats)

Installation

From npm (Recommended)

npm install -g legiscan-mcp-server

From Source

git clone https://github.com/sh-patterson/legiscan-mcp.git
cd legiscan-mcp
npm install
npm run build

Setup

1. Get a LegiScan API Key

  1. Create a free account at LegiScan
  2. Register for API access at https://legiscan.com/legiscan
  3. Copy your API key

2. Add to Claude Desktop

Add to your Claude Desktop configuration:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

Using npx (Recommended)

{
  "mcpServers": {
    "legiscan": {
      "command": "npx",
      "args": ["-y", "legiscan-mcp-server"],
      "env": {
        "LEGISCAN_API_KEY": "your_api_key_here"
      }
    }
  }
}

Using local installation

{
  "mcpServers": {
    "legiscan": {
      "command": "node",
      "args": ["/path/to/legiscan-mcp-server/dist/index.js"],
      "env": {
        "LEGISCAN_API_KEY": "your_api_key_here"
      }
    }
  }
}

Available Tools

Composite Tools (High-Level Research)

Tool Description
legiscan_find_legislator Find a legislator's people_id by name. Supports partial matching.
legiscan_get_legislator_votes Get how a legislator voted on multiple bills in one call.
legiscan_get_primary_authored Get only bills where legislator is primary author (not co-sponsor).

Bills

Tool Description
legiscan_get_bill Get detailed bill info (sponsors, history, votes, texts)
legiscan_find_bill_by_number Find bill by number (handles AB 858, AB858, AB-858)
legiscan_get_roll_call Get vote details with individual legislator votes

People

Tool Description
legiscan_get_person Get legislator info with third-party IDs (VoteSmart, OpenSecrets, etc.)
legiscan_get_session_people Get all legislators active in a session

Search

Tool Description
legiscan_search Full-text search across legislation

Sessions

Tool Description
legiscan_get_session_list List available legislative sessions by state

Usage Examples

Find a legislator and get their voting record

1. Use legiscan_find_legislator with name="Smith" state="TX"
2. Use legiscan_get_legislator_votes with people_id and bill_ids

Get all primary authored bills for a legislator

Use legiscan_get_primary_authored with people_id=12345 state="TX"

Find a specific bill by number

Use legiscan_find_bill_by_number with state="CA" bill_number="AB 858"

Search for bills about a topic

Use legiscan_search with query="climate change" state="CA"

Get detailed information about a specific bill

Use legiscan_get_bill with bill_id=1234567

API Call Reduction

The composite tools dramatically reduce API calls for common workflows:

Workflow Without Composites With Composites
Get votes for 1 legislator on 10 bills ~80 calls 1 call
Filter primary authored from 150 sponsored ~150 calls 1 call
Find legislator by name 2 calls 1 call

Development

npm run build        # Compile TypeScript
npm test             # Run unit tests
npm run test:e2e     # Run E2E tests (requires API key)
npm run lint         # Check for lint errors
npm run format       # Format code with Prettier

API Limits

  • Free public API keys have a 30,000 queries per month limit
  • Composite tools batch requests (10 concurrent max) to avoid rate limits
  • The composite tools help you stay within limits by reducing total API calls

License

MIT - see LICENSE for details.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选