Skip to main content
Glama
Parliament MCP (India)

Parliament MCP (India)

by lhasao

Parliament MCP (India)

Lets AI assistants (Claude, ChatGPT and other tools that support MCP) look up accurate, current facts about India's Parliament instead of guessing from memory: who the MPs are, which committees they sit on, and which committee is examining a bill.

Built by CitizenView. Data from PRS Legislative Research, CC BY 4.0 — credit PRS when you use it.

Connect

Run it with uv, one command, no cloning:

uvx --from git+https://github.com/lhasao/parliament-mcp-india parliament-mcp-india

Claude Desktop (claude_desktop_config.json):

{ "mcpServers": { "parliament-india": { "command": "uvx", "args": ["--from", "git+https://github.com/lhasao/parliament-mcp-india", "parliament-mcp-india"] } } }

Claude Code: claude mcp add parliament-india -- uvx --from git+https://github.com/lhasao/parliament-mcp-india parliament-mcp-india

Related MCP server: Indian Legal MCP

What it answers

Tool

What it does

list_members

Current MPs, filtered by house, state or party (paginated)

search_members

Find MPs by name or constituency

get_member

One MP, with the committees they sit on

list_committees / get_committee

Committees, chairs and full membership

list_bills

Tracked bills and the committees examining them

relevant_mps_for_bill

The MPs on the committee examining a bill

Covers the 18th Lok Sabha, current Rajya Sabha members and all parliamentary committees. A bill is linked to a committee only when that committee's own PRS page names it. "Relevant" means the MP sits on the committee examining the bill — not that they support it. No contact details are included.

Running it as a web service

parliament-mcp-india --http --port 8000 serves MCP at /mcp with these protections:

  • Only POST /mcp serves MCP; GET / and /health return a short info page; everything else is refused.

  • Per-client rate limit: 60 requests a minute with bursts of 20 (RATE_LIMIT_PER_MINUTE, RATE_LIMIT_BURST). It's held in memory, per running instance. Behind a trusted reverse proxy, set TRUST_PROXY_HEADERS=1 so it keys on the real client IP.

  • Request bodies capped at 64 KB; tool inputs length-limited.

  • The MCP SDK's host and origin checks (DNS-rebinding protection). Only localhost is allowed by default; add your domain with MCP_ALLOWED_HOSTS (and browser origins with MCP_ALLOWED_ORIGINS).

  • Security headers on every response. The service is read-only and holds no secrets.

Develop

uv venv --python 3.12 && source .venv/bin/activate && uv pip install -e .
python -m unittest discover -s tests          # unit and HTTP-protection tests
python tests/fixtures/smoke_test_client.py    # real client over stdio
parliament-mcp-india --http --port 8000 &     # local web server with its protections
python tests/fixtures/smoke_test_http.py      # real client over HTTP

Refresh the data

Run around parliamentary sessions. It waits 10 seconds between requests, as PRS's robots.txt asks, so a full run takes about 25 minutes.

python -m parliament_mcp_india.ingest --bills ../citizenview/src/data/bill-timelines.json \
    --out src/parliament_mcp_india/dataset/parliament.json --cache /tmp/prs-cache
python -m parliament_mcp_india.export_site --out ../citizenview/src/data/bill-mps.json   # MPs on CitizenView bill pages

License

Code: MIT (see LICENSE). Data: PRS Legislative Research, CC BY 4.0.

Available Tools

7 tools
get_committeeC

A committee's chair and full membership.

Inputs: committee_id (required).

get_memberC

One MP's details, including the committees they sit on.

Inputs: member_id (required).

list_billsB

Bills currently tracked, with the committees examining them.

Inputs: no named parameters. Returns: result

list_committeesA

All parliamentary committees with their chair and size.

Inputs: no named parameters. Returns: result

list_membersA

List current MPs. Filter by house ("Lok Sabha" or "Rajya Sabha"), state, or party. Paginated (limit 1–200).

Inputs: house, limit, party, state, +1 more.

relevant_mps_for_billA

The MPs on the committee examining a bill. Accepts a PRS bill slug or part of the bill's title.

Inputs: bill (required).

search_membersA

Find MPs by name or constituency (partial match, max 50 results).

Inputs: query (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 7 tools

    Disambiguation4/5

    Most tools target distinct resources (members, committees, bills) and the list/get pairs are cleanly separated. The only real overlap is list_members vs search_members, which both answer 'find MPs' — one by structured filters, the other by partial text — and an agent could plausibly pick the wrong one for a name query. relevant_mps_for_bill is a join over list_bills/get_committee but its bill-centric framing makes its purpose clear.

    Naming Consistency4/5

    Six of seven tools follow a consistent verb_noun snake_case pattern (list_members, get_member, list_committees, get_committee, list_bills, search_members). The exception is relevant_mps_for_bill, which is noun-phrase style rather than verb-first, but it remains readable and snake_case consistent.

    Tool Count5/5

    Seven tools is a well-scoped set for a parliamentary data server: two list/get pairs for members and committees, a search, a bill listing, and one targeted cross-reference tool. Each tool has a distinct job and nothing feels padded.

    Completeness3/5

    Member and committee coverage is solid (list, search, get with committee membership), and bills can be listed and linked to committee members. However, there is no get_bill/detail tool for a specific bill (status, sponsors, text), so bill workflows dead-end at the list, and there is no committee search or bill-search operation.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to query bills, committees, and members from the Israeli Knesset parliamentary information API via MCP tools.
      9
      9 npm
      3
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to retrieve the exact, structured text of 10 major Indian Acts — pulling individual sections or Constitution articles, browsing chapters and section ranges, and running ranked keyword searches — with repealed laws flagged and their replacements named. All results are sourced directly from the underlying Act texts rather than model memory, preventing hallucinated section numbers, punishments, or outdated law.
      1
      -
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to query and compare Indian MPs using parliamentary records, attendance, affidavits, and election results, including topic search, report cards, rankings, and source-backed answers.
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables LLMs to query live Austrian Parliament data — current Nationalrat and Bundesrat members, plenary sessions and individual speeches, inquiries and answers, bills with their committee procedure and party votes, and committees — returning source-linked results, with full-text speech search and ready-made research prompts.
      12
      60 npm
      MIT