Switzerland Parliament MCP Server
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
Public Hosted Server: https://switzerland-parliament.caseyjhand.com/mcp
Overview
Swiss Federal Assembly records from Curia Vista and the Amtliches Bulletin. Find parliamentary business, read its original texts and procedural history, follow the debate in either council, inspect Nationalrat roll calls, and look up members and declared interests. Uses the public OData service without an API key; runs as a stdio process, a local Streamable HTTP server, or the public hosted endpoint above.
Ships the switzerland-parliament-guide agent skill (skill://switzerland-parliament-guide/SKILL.md), which plugin installs and MCP clients read for the checks that span tools: choosing which roll call to report, tracing a Bulletin vote announcement to its roll call, what the Ständerat record holds, and committee rosters, which are current by default and past-day through asOf.
Results credit Parlamentsdienste der Bundesversammlung, Bern, with source URLs and download dates. This is an unofficial reproduction. The Parliament's open-data conditions apply to source content; underlying author rights remain intact.
Tools
Tool | Description |
| Find business by title, submitter, type, status, submission session, dates, topic tag, committee role, or a member's own roles |
| Read business metadata, original texts, status history, bills, related business, committee consultations, or debate subjects |
| Find Nationalrat roll calls, page member decisions, or read complete vote and parliamentary-group counts |
| Find debate passages by business, subject, speaker, session, council, or dates; retrieve original text |
| Find current or former parliamentary affiliation records by name, council, canton, party, or group, list a committee's current members or its members on a past day, or find the members who declare an interest |
| Read parliamentary identity, council terms, current committee memberships, committee history, or declared interests |
| Resolve identifiers, coverage, languages, codes, committees, topic tags, and sessions |
Related MCP server: cern-opendata-mcp-server
Capability reference
chparl_search_business tool
query(title substring),author(published submitter label, not every co-signatory),typeId,statusId,sessionId(submission session),committeeId,personNumber,role,tagId, and inclusivesubmittedFrom/submittedTo. Newest business IDs first, default 20/max 100. Text too long for the source's 2,048-byte URL-encoded query string fails asrequest_too_longinstead of being sentpersonNumberlists the business where that member holds a published role, former members and co-signatures included, and cannot combine withcommitteeId.role(author,cosignatory,spokesperson,opponent,successor) narrows it to one role and requirespersonNumber.tagId(achparl_list_referencetopictagsid) matches one whole element of a business's tags; withoutcommitteeIdorpersonNumberit needssubmittedFromandsubmittedToat most 366 days apart, or fails astag_scope_requiredContinue with
nextCursorand unchanged filters; a cursor from other filters fails asinvalid_cursor.totalCountis reported without author or committee filters, and withpersonNumberplusrole; atagIdsearch withoutcommitteeIdorpersonNumberreports it on the first page only. Author searches use an extra matching row to establish continuation; committee searches, andpersonNumbersearches withoutrole, page role rows, so pages can be short
chparl_get_business tool
Canonical eight-digit
businessIdor an exact published short number such as99.1234. A short number matching several businesses fails asambiguous_business_number, and a miss returnsfound: falseoverview(default) returns metadata andavailableTextFieldswith UTF-8 sizes.textsreturnstextDocument.kind: "full" | "outline": several large fields become an outline, and namedtextFieldsalways return wholestatus_history,bills,related_business,preconsultations, andsubjectspage independently, default 20/max 100 withnextOffset.subjectsrows carry themeetingDate,councilName,sessionId, andsessionNameof their meeting, and their IDs narrowchparl_search_transcripts; linked bills are parliamentary records, not enacted law
chparl_get_votes tool
mode: "votes"withbusinessId,sessionId, or both lists roll calls (default 10/max 50). A returnedvoteIdfeedsmode: "members"(default 25/max 100, optionalpersonNumber) ormode: "groups"(unpaged). Paged modes continue withnextOffsetmode: "members"withpersonNumberand novoteIdpages that member's voting history, optionally narrowed bybusinessIdandsessionId. Each history row carries its published vote, business, session, and time fields plusbillTitle,registrationNumber,subject,meaningYes, andmeaningNo; a Bulletin vote passage'svoteIdis theregistrationNumber. Selected-vote pages carry that context once invote.cantonIduses the canton reference's numbering;votingCantonIdpreserves the source Voting identifiermemberscounts carrydecisionCounts.scope: "page".groupsreads every published member row and returnsscope: "vote",complete: true, and per-group totals by the affiliation recorded on the vote. Count buckets retain every distinct published label indecisionTexts. Decision codes: 1 yes, 2 no, 3 abstention, 4 present, 5 did not participate, 6 excused under Art. 57 para. 4, 7 president does not vote, 8 resignedNationalrat only, from the 2003 winter session. An empty result does not establish that no vote occurred
chparl_search_transcripts tool
Both councils from the 1999 winter session. Scope with
businessIdorsubjectId(exclusive),personNumber,sessionId, or a date bound;councilonly narrows.query(original-text substring) also needssessionIdor a closed range of at most 31 calendar days, and text too long for the source's 2,048-byte URL-encoded query string fails asrequest_too_longMetadata with
textSizeBytesby default (20/max 100);includeText: truereturns whole passages (3/max 10); an exacttranscriptIddefaults to full text. Searches run in debate order, oldest first: meeting day, sitting, debate subject, thensortOrderwithin the subject. Continue withnextOffsetA business search covers up to 20 debate subjects. A business with more is searched when
council,sessionId,dateFrom, ordateToleave at most 20 of its subjects; otherwise it fails asbusiness_scope_too_broad, so pagechparl_get_businesssectionsubjectsand pass onesubjectId.foundmarks exact-ID misses,scopeFounda missing businesssubjectBusinessesmaps each delivered passage'ssubjectIdto the businesses published for that debate subject, whosebusinessIdfeedschparl_get_businessandchparl_get_votes. A passage's ownbusinessIdcomes only from vote announcements. When that lookup fails for any upstream reason or outlasts its 10-second bound, the field is omitted with a notice and the passages are unchanged
chparl_search_members tool
query(first, last, or official name substring),membership(currentdefault,former,all),council(N/Sor the German, French, or Italian council name),cantonId,partyId,groupId,committeeId,asOf,interest. Default 20/max 100,nextOffset.queryorinteresttoo long for the source's 2,048-byte URL-encoded query string fails asrequest_too_longRows are MemberCouncil affiliation records, not deduplicated people. Current records include the Federal Council (
councilId99) and the Federal Chancellor (98) beside the parliamentarians. TheirpersonNumberfeedschparl_get_member,chparl_get_votes,chparl_search_business, andchparl_search_transcriptscommitteeId(achparl_list_referencetopiccommitteesid) lists that committee's current members: one row per membership, withcommitteeFunctionId/committeeFunctionName, andtotalCountcounting memberships. The other filters narrow the roster; a sub-committee has its own number and roster. Rosters takemembershipcurrentonly, soformerorallfails asincompatible_fields.committeeFound: falsewithguidancemarks an unknown committee; a committee with no published members returnscommitteeFound: trueand an empty rosterasOf(withcommitteeId;YYYY-MM-DD, a date-time read as its day, no future day) lists the memberships open on that day, a membership's last day included, so a person whose function changed that day holds two rows. Rows carry the names, council, canton, party, and group recorded for that membership, withcommitteeJoinedDateandcommitteeLeftDate(which can lie in the future);council,cantonId,partyId, andgroupIdfilter that recorded affiliation. Published history starts per committee, 1995-12-04 for standing committees. A day after today in Switzerland fails asas_of_in_futureinterest(a substring of a declared interest name, case- and accent-insensitive, never translated between languages) returns one row per matching declaration: the declarant's member record plus itsinterest, withtotalCountcounting declarations. It cannot combine withcommitteeIdorasOf;membershipapplies to the declarant's record. An empty result does not establish that no member has a tie to the organisation
chparl_get_member tool
Requires
personNumber.overview(default) returns identity and every MemberCouncil affiliation, unpaged; a miss returnsfound: falsecouncil_terms,committees,committee_history, andinterestspage independently, default 20/max 100 withnextOffset.committeesholds current memberships;committee_historyis the ledger of every published committee membership, past and current, oldest first, each with the council recorded for it and its first and last day. A missingpaidflag means unknown, and empty interests do not establish the absence of conflicts
chparl_list_reference tool
Static topics
identifiers,coverage,languages, andstatuses(the official vocabulary effective 1 July 2023, each code taggedera: "legacy" | "current"). Live dictionariesbusiness_types,tags,councils,cantons,parties,groups,committees, andsessions; atagsid feedschparl_search_businesstagIdDefault 50/max 100,
nextOffset. Onlysessionsaccepts dates:dateFrombounds the start anddateTothe end, inclusivelyqueryfilterscommittees,parties, andgroupsby a case- and accent-insensitive substring of each entry's label or abbreviation in the selected metadata language; abbreviations differ by language (WAK-NisCER-Ninfr). With it,totalCount,nextOffset, andhasMoredescribe the filtered set. On another topic it fails asincompatible_fields
Features
Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.
Swiss Parliament-specific:
Keyless, read-only access to business, procedural relationships, Nationalrat roll calls, debate passages, members, and declared interests
de(default),fr, anditmetadata with no translation fallback; Italian completeness is not established. Bulletin text stays in the language the speaker usedPublished text and HTML are returned unchanged, with an index of their links and images carrying absolute HTTP(S) URLs where the source supplies one
One 45-second deadline per complete workflow, covering joins and retries
Agent-friendly output:
Provenance on every result: attribution to Parlamentsdienste der Bundesversammlung, plus the source URL and retrieval time of each upstream response
Whole-record pages: a page holds the requested
limitrecords (clamped to the tool's cap with a notice), never shorter fields, and reportsreturnedCount,hasMore,totalCountwhen known, and the continuationOne record on both surfaces:
content[]carries everystructuredContentfield, with multiline text and HTML in JSON-encoded fenced blocks that decode back losslesslyUnknown stays unknown: absent source values are omitted rather than defaulted, empty results carry next-step guidance, and failures carry typed reasons such as
upstream_rate_limited
Getting started
Connect to the hosted instance, no install:
claude mcp add --transport http switzerland-parliament-mcp-server https://switzerland-parliament.caseyjhand.com/mcpOr run it locally:
claude mcp add switzerland-parliament-mcp-server -- npx -y @cyanheads/switzerland-parliament-mcp-serverFor other clients, add this to the MCP config file:
{
"mcpServers": {
"switzerland-parliament-mcp-server": {
"command": "npx",
"args": ["-y", "@cyanheads/switzerland-parliament-mcp-server"]
}
}
}For Docker or a source build, see Running the server.
Configuration
No server-specific environment variables are required.
Variable | Description | Default |
| Transport: |
|
| HTTP server port. |
|
| HTTP session mode: |
|
| Authentication: |
|
| Log level ( |
|
| Directory for log files (Node.js only). |
|
| Storage backend: |
|
| Enable OpenTelemetry. |
|
See .env.example for the common framework overrides.
Running the server
Local development
Requires Bun v1.4.4 or higher (or Node.js v24+).
git clone https://github.com/cyanheads/switzerland-parliament-mcp-server.git
cd switzerland-parliament-mcp-server
bun install
cp .env.example .envBuild and run the production version:
# One-time build bun run rebuild # Run the built server bun run start:http # or bun run start:stdioRun checks and tests:
bun run devcheck # Lints, formats, type-checks, and more bun run test # Runs the test suite
Docker
docker run --rm -p 3010:3010 ghcr.io/cyanheads/switzerland-parliament-mcp-server:latestThe image defaults to HTTP transport, stateless sessions, and logs to /var/log/switzerland-parliament-mcp-server. For stdio, use "command": "docker" with "args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/switzerland-parliament-mcp-server:latest"]. Build locally with docker build -t switzerland-parliament-mcp-server .; --build-arg OTEL_ENABLED=false omits OpenTelemetry peers.
Project structure
Directory | Purpose |
| The published |
|
|
| Tool definitions, shared lossless rendering, and single-record size notices. |
| OData client, workflow deadlines, domain schemas and services, provenance, and reference snapshots. |
| Unit and integration tests, mirroring the |
Development guide
See CLAUDE.md for development guidelines and architectural rules. The short version:
Handlers throw, framework catches — no
try/catchin tool logicUse
ctx.logfor logging,ctx.statefor storageRegister new tools and resources in the
createApp()arrays insrc/index.tsWrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields
Contributing
Issues are welcome. Run checks and tests before submitting:
bun run devcheck
bun run testLicense
This project is licensed under the Apache 2.0 License. See the LICENSE file for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Search Swiss federal legislation: laws, articles, amendments via the Fedlex SPARQL endpoint.
Query FDA data on drugs, food, devices, and recalls via openFDA. STDIO or Streamable HTTP.
Track Canadian federal bills, MPs, House votes, and Hansard speeches.
Search MPs and Lords, fetch profiles, synopses, and Westminster constituencies
Related MCP Servers
- AlicenseAqualityBmaintenanceAn MCP server connecting AI models to the Swiss Federal Parliament via the Curia Vista OData API, enabling queries of motions, votes, members, sessions, and debate transcripts without authentication.754 PyPI2MIT
- AlicenseNot gradedqualityBmaintenanceEnables searching and exploring CERN Open Data records, files, analysis environments, CMS validated-run (good-run) lists, and HLT trigger paths through MCP tools. Supports exact-vocabulary filtering with live facet counts, license and citation retrieval, and runs over stdio or Streamable HTTP.311 npm1Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables tracking of Canadian federal parliamentary records by searching bills, members, House divisions, and indexed Hansard speeches, then retrieving detailed dossiers, profiles, tallies, and full speech text from official public sources. Runs over STDIO or Streamable HTTP with no API key required.95 npm1Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables discovery and retrieval of European Parliament procedures, MEPs, plenary votes, documents, speeches, and questions from the Open Data API over STDIO or Streamable HTTP.136 npm1Apache 2.0