article
README
🚀 Keboola MCP 服务器
Keboola MCP 服务器是一款模型上下文协议(MCP)服务器,主要用于与 Keboola 连接进行交互。它提供了丰富的工具,可用于操作和查询 Keboola 资源。
🚀 快速开始
你可以按照以下步骤完成 Keboola MCP 服务器的安装、配置和启动。
📦 安装指南
安装依赖
运行以下命令安装所需的 Python 包:
pip install -r requirements.txt
启动服务器
启动 MCP 服务器:
python -m keboola_mcp_server --port 8000
你可以通过指定 --port 参数来更改服务器端口。
💻 使用示例
配置 Claude Desktop
将 MCP 服务器添加到 Claude Desktop 的配置文件中。编辑 ~/.config/claude/settings.json 文件,添加以下内容:
{
"mcpServers": {
"keboola": {
"url": "http://localhost:8000"
}
}
}
配置 Cursor AI
使用 Server-Sent Events (SSE)
在 cursor.json 文件中添加以下内容:
{
"mcpServers": {
"keboola": {
"url": "http://localhost:8000/sse"
}
}
}
使用标准输入输出 (_stdio)
编辑 ~/.config/cursor/mcp-servers.json 文件,添加以下内容:
{
"mcpServers": {
"keboola": {
"command": "/path/to/venv/bin/python",
"args": [
"-m",
"keboola_mcp_server.cli --transport stdio"
]
}
}
}
📚 详细文档
开发指南
运行测试
pytest
格式化代码
black .
isort .
类型检查
mypy .
📄 许可证
本项目使用 MIT 许可证,详细信息请参阅 LICENSE 文件。
微信扫一扫