
Uk Parliament Treaties
io.github.nick-ma由 GitHub 账号 nick-ma 发布v1.0.1更新于 Oct 24, 2026
MCP server for UK Parliament Treaties API
概览
让助手查询英国议会条约数据,包括条约、事务事项、政府机构和系列成员信息。
- 可以做什么
- 将英国议会条约 API 封装为只读工具:list_treaties 可按议院、系列、议会流程状态、辩论安排、动议和委员会关切等条件检索;get_treaty_by_id 与 get_business_item_by_id 按 ID 获取单条记录;list_business_items_by_treaty_id 返回与某条约关联的事项;list_government_organisations 与 list_series_memberships 返回参考列表。返回结果以统一信封保留上游原始数据,并附上游路径与获取时间。
- 适用场景
- 适合跟踪英国条约审议、议会流程状态或相关政府机构的研究、公民科技与报告类工作。它是只读的公开数据源,适合用于总结或监测条约动态,而非执行操作。
- 运行要求
- 通过 stdio 在本地运行,通常用 npx 调用 npm 包 @darkhorseone/mcp-server-uk-parliament-treaties,因此需要 Node.js 以及访问条约 API 的网络。可选环境变量包括 UPSTREAM_BASE_URL 和 REQUEST_TIMEOUT_MS;HTTP 代理模式使用 UKP_HTTP_PORT。未声明需要账号或 API 密钥。
安装
在 SourceWeft 中
- 打开 控制台中的 Uk Parliament Treaties,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
[MCP Compatible] [AI Agent Ready]
UK Parliament Treaties MCP Server
Summary
This MCP server provides structured access to UK Parliament Treaties data using the Model Context Protocol. It enables AI agents to retrieve treaties, business items, and government organisations through API-backed tools and data access. Developers can integrate the MCP server via stdio transport to query treaty metadata, series memberships, and parliamentary process status. The server exposes tools that map directly to the Treaties API for reliable automation and AI agents workflows.
Features
- Search treaties with filters for house, series, and parliamentary process status.
- Retrieve treaty and business item details by ID.
- Access government organisations and series memberships.
- Preserve upstream payloads in a standardized envelope for downstream tools.
Available Tools
get_business_item_by_id
Returns business item by ID.
Parameters:
- id (string, path)
list_government_organisations
Returns all government organisations.
list_series_memberships
Returns all series memberships.
list_treaties
Returns a list of treaties.
Parameters:
- SearchText (string, query)
- GovernmentOrganisationId (number, query)
- Series (string, query) – CountrySeriesMembership | EuropeanUnionSeriesMembership | MiscellaneousSeriesMembership
- ParliamentaryProcess (string, query) – NotConcluded | Concluded
- DebateScheduled (boolean, query)
- MotionsTabledAboutATreaty (boolean, query)
- CommitteeRaisedConcerns (boolean, query)
- House (string, query) – Commons | Lords
- Skip (number, query)
- Take (number, query)
get_treaty_by_id
Returns a treaty by ID.
Parameters:
- id (string, path)
list_business_items_by_treaty_id
Returns business items belonging to the treaty with ID.
Parameters:
- id (string, path)
Example Output
Quick Start
Run the MCP server using npx:
MCP Configuration
Example mcpServers configuration for stdio transport:
Example Usage
- Search treaties by house and parliamentary process status.
- Fetch a treaty by ID and review its metadata.
- Retrieve business items linked to a treaty.
- List government organisations associated with treaties.
Use Cases
- AI agents summarizing treaty status and parliamentary scrutiny.
- Research tools tracking treaty processes and schedules.
- Civic tech platforms monitoring treaties by government body.
- Automation workflows exporting treaty metadata for analysis.
Data Source
UK Parliament Treaties API https://treaties-api.parliament.uk
Installation
Run directly using npx:
Or install via pnpm from the repository root:
Run (HTTP proxy server)
Build first, then start:
Set a custom HTTP port with the UKP_HTTP_PORT environment variable (default: 8787):
Published package command:
If your shell cannot resolve the bin ("command not found"), run the HTTP entrypoint directly:
Health check:
Proxy pattern:
Example:
License
MIT License
MCP Metadata
Protocol: Model Context Protocol Transport: stdio Tools: get_business_item_by_id, list_government_organisations, list_series_memberships, list_treaties, get_treaty_by_id, list_business_items_by_treaty_id
来源:servers/uk-parliament-treaties/README.md,提交 38e74c9
工具
0版本历史
1- v1.0.1最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。