
OpenTK Model Context Protocol Server

2025.04.23
3
HTML议会数据访问AI 数据接口位置服务开发效率
OpenTK Model Context Protocol Server 是一个基于 OpenTK 项目的 MCP 服务器,作为大型语言模型(LLMs)与荷兰议会数据之间的桥梁。它通过标准化接口提供对荷兰议会文档、辩论和成员信息的访问。该服务器利用 Bert Hubert 的 tkconv 服务作为主要数据源,为 AI 助手提供了搜索、检索和分析议会数据的能力。
View on GitHub
Overview
基本能力
产品定位
OpenTK MCP Server 是一个连接大型语言模型与荷兰议会数据的中间件,旨在为 AI 助手提供结构化的议会数据访问能力。
核心功能
- MP 信息工具:
birthdays_today
:列出今天过生日的议员list_persons
:提供当前议员的完整目录-
get_photo
:获取议员的官方肖像照片 -
搜索工具:
search_tk
:全面搜索所有议会数据search_tk_filtered
:按文档类型过滤搜索-
search_by_category
:按特定类别搜索文档 -
文档工具:
get_document_details
:检索议会文档的元数据-
get_document_links
:将文档 URL 转换为可点击链接 -
委员会工具:
get_committees
:检索所有议会委员会的列表-
get_committee_details
:检索特定委员会的详细信息 -
活动和投票工具:
get_upcoming_activities
:检索即将举行的议会活动get_voting_results
:检索议会动议和法案的最近投票结果
适用场景
- 研究气候政策等议会讨论
- 查询特定议员的信息和背景
- 查找最近的住房立法
- 查找今天过生日的议员
- 查询下周的议会活动安排
使用教程
使用依赖
- 确保已安装 Node.js 和 npm
- 确保已安装 Git
安装教程
- 克隆仓库:
git clone https://github.com/r-huijts/opentk-mcp.git
cd opentk-mcp
- 安装依赖:
npm install
- 构建项目:
npm run build
- 启动服务器:
npm start
配置 Claude Desktop
更新 Claude 配置文件:
{
"mcpServers": {
"opentk-mcp-local": {
"command": "node",
"args": [
"/absolute/path/to/your/opentk-mcp/dist/index.js"
]
}
}
}
调试方式
- 检查服务器是否正常运行:
curl http://localhost:3000/health
- 测试基本功能:
curl -X POST http://localhost:3000/api/search -d '{"query":"klimaatbeleid"}'