
Uk Parliament Statutoryinstruments
io.github.nick-ma由 GitHub 账号 nick-ma 发布v1.0.1更新于 Oct 24, 2026
MCP server for UK Parliament Statutory Instruments API
概览
只读 MCP 服务器,让助手检索英国议会法定文书、拟议否定决议、程序、提交机构和议会法案。
- 可以做什么
- 按议院、程序、类型、部门和状态等条件搜索并列出法定文书与拟议否定决议,覆盖 v1 和 v2 接口,支持 Skip 与 Take 分页。按 ID 获取单个法定文书、拟议否定决议、程序、业务事项或议会法案。列出与某文书、拟议否定决议或时间线关联的业务事项。查询全部提交机构与程序。以上游原始载荷加统一信封返回,含状态、路径和获取时间。
- 适用场景
- 适合需要英国法定文书状态、程序、主管部门或相关议会事务的研究、公民科技或报告工作,也便于在不手动调用接口的情况下汇总和跟踪文书。
- 运行要求
- 通过 stdio 在本地运行,通常用 npx 从 npm 包启动,因此需要 Node.js 以及访问英国议会法定文书 API 的网络。未声明认证或 API 密钥。README 示例配置设置了 UPSTREAM_BASE_URL 和 REQUEST_TIMEOUT_MS;可选 HTTP 模式使用 UKP_HTTP_PORT。
安装
在 SourceWeft 中
- 打开 控制台中的 Uk Parliament Statutoryinstruments,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
[MCP Compatible] [AI Agent Ready]
UK Parliament Statutory Instruments MCP Server
Summary
This MCP server provides structured access to UK Parliament Statutory Instruments data using the Model Context Protocol. It enables AI agents to query statutory instruments, procedures, laying bodies, and business items through API-backed tools and data access. Developers can integrate the MCP server via stdio transport to retrieve instruments across v1 and v2 endpoints. The server exposes tools that map directly to the Statutory Instruments API for reliable automation and AI agents workflows.
Features
- Search statutory instruments and proposed negatives with filters for house, procedure, and status.
- Retrieve instrument details, procedures, and business items by ID.
- Access laying bodies and Acts of Parliament through v1 and v2 endpoints.
- Preserve upstream payloads in a standardized envelope for downstream tools.
Available Tools
get_v1_business_item_by_id
Returns business item by ID.
Parameters:
- id (string, path)
- LaidPaper (string, query) – StatutoryInstrument | ProposedNegative
list_v1_laying_bodies
Returns all laying bodies.
list_v1_procedures
Returns all procedures.
get_v1_procedure_by_id
Returns procedure by ID.
Parameters:
- id (string, path)
list_v1_proposed_negative_statutory_instruments
Returns a list of proposed negative statutory instruments.
Parameters:
- Name (string, query)
- RecommendedForProcedureChange (boolean, query)
- DepartmentId (number, query)
- LayingBodyId (string, query)
- Skip (number, query)
- Take (number, query)
get_v1_proposed_negative_statutory_instrument_by_id
Returns proposed negative statutory instrument by ID.
Parameters:
- id (string, path)
list_v1_business_items_by_proposed_negative_statutory_instrument_id
Returns business items belonging to a proposed negative statutory instrument.
Parameters:
- id (string, path)
list_v1_statutory_instruments
Returns a list of statutory instruments.
Parameters:
- Name (string, query)
- StatutoryInstrumentType (string, query) – DraftAffirmative | DraftNegative | MadeAffirmative | MadeNegative
- ScheduledDebate (boolean, query)
- MotionToStop (boolean, query)
- ConcernsRaisedByCommittee (boolean, query)
- ParliamentaryProcessConcluded (string, query) – NotConcluded | Concluded
- DepartmentId (number, query)
- LayingBodyId (string, query)
- House (string, query) – Commons | Lords
- Skip (number, query)
- Take (number, query)
get_v1_statutory_instrument_by_id
Returns a statutory instrument by ID.
Parameters:
- id (string, path)
list_v1_business_items_by_statutory_instrument_id
Returns business items belonging to statutory instrument with ID.
Parameters:
- id (string, path)
list_v2_acts_of_parliament
Search through Acts of Parliament.
Parameters:
- Id (array:string, query)
- Name (string, query)
get_v2_act_of_parliament_by_id
Search individual Act of Parliament by ID.
Parameters:
- id (string, path)
list_v2_statutory_instruments
Search through statutory instruments and proposed negatives.
Parameters:
- Name (string, query)
- Procedure (string, query)
- ScheduledDebate (boolean, query)
- MotionToStop (boolean, query)
- ConcernsRaisedByCommittee (boolean, query)
- ParliamentaryProcessConcluded (boolean, query)
- DepartmentId (number, query)
- LayingBodyId (string, query)
- RecommendedForProcedureChange (boolean, query)
- ActOfParliamentId (array:string, query)
- House (string, query) – Commons | Lords
- Skip (number, query)
- Take (number, query)
get_v2_statutory_instrument_by_instrument_id
Get individual statutory instrument or proposed negative by id.
Parameters:
- instrumentId (string, path)
list_v2_business_items_by_instrument_id
Get business items associated with a particular instrument.
Parameters:
- instrumentId (string, path)
list_v2_business_items_by_timeline_id
Get business items associated with a particular timeline.
Parameters:
- timelineId (string, path)
Example Output
Quick Start
Run the MCP server using npx:
MCP Configuration
Example mcpServers configuration for stdio transport:
Example Usage
- List statutory instruments laid in the Commons with a name filter.
- Fetch a statutory instrument by ID and inspect its procedure.
- Retrieve business items for an instrument or timeline.
- Search Acts of Parliament linked to statutory instruments.
Use Cases
- AI agents summarizing statutory instrument status and procedures.
- Research tools tracking instruments by department or house.
- Civic tech platforms monitoring proposed negatives and debates.
- Automation workflows exporting instrument metadata for reporting.
Data Source
UK Parliament Statutory Instruments API https://statutoryinstruments-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_v1_business_item_by_id, list_v1_laying_bodies, list_v1_procedures, get_v1_procedure_by_id, list_v1_proposed_negative_statutory_instruments, get_v1_proposed_negative_statutory_instrument_by_id, list_v1_business_items_by_proposed_negative_statutory_instrument_id, list_v1_statutory_instruments, get_v1_statutory_instrument_by_id, list_v1_business_items_by_statutory_instrument_id, list_v2_acts_of_parliament, get_v2_act_of_parliament_by_id, list_v2_statutory_instruments, get_v2_statutory_instrument_by_instrument_id, list_v2_business_items_by_instrument_id, list_v2_business_items_by_timeline_id
来源:servers/uk-parliament-statutoryinstruments/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 分
请在仓库或注册中心条目中声明许可证。