基本能力
产品定位
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
安装教程
-
克隆仓库:
bash
git clone https://github.com/r-huijts/opentk-mcp.git
cd opentk-mcp -
安装依赖:
bash
npm install -
构建项目:
bash
npm run build -
启动服务器:
bash
npm start
配置 Claude Desktop
更新 Claude 配置文件:
json
{
"mcpServers": {
"opentk-mcp-local": {
"command": "node",
"args": [
"/absolute/path/to/your/opentk-mcp/dist/index.js"
]
}
}
}
调试方式
-
检查服务器是否正常运行:
bash
curl http://localhost:3000/health -
测试基本功能:
bash
curl -X POST http://localhost:3000/api/search -d '{"query":"klimaatbeleid"}'