这是一个由Langflow驱动的文档问答系统MCP服务器。它通过提供一个简单的接口来查询文档,展示了核心的MCP概念。
http://127.0.0.1:7860/api/v1/run/<flow-id>?stream=falseAPI_ENDPOINT配置中需要它。query_docs - 查询文档问答系统
安装依赖项:
npm install
构建服务器:
npm run build
开发时自动重建:
npm run watch
要在Claude Desktop中使用,请添加服务器配置:
在MacOS中:~/Library/Application Support/Claude/claude_desktop_config.json
在Windows中:%APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"langflow-doc-qa-server": {
"command": "node",
"args": [
"/path/to/doc-qa-server/build/index.js"
],
"env": {
"API_ENDPOINT": "http://127.0.0.1:7860/api/v1/run/480ec7b3-29d2-4caa-b03b-e74118f35fac"
}
}
}
}
要通过Smithery自动安装Document Q&A Server for Claude Desktop:
npx -y @smithery/cli install @GongRzhe/Langflow-DOC-QA-SERVER --client claude
该服务器支持以下环境变量进行配置:
API_ENDPOINT:Langflow API服务的端点URL。如果没有指定,默认为http://127.0.0.1:7860/api/v1/run/480ec7b3-29d2-4caa-b03b-e74118f35fac。由于MCP服务器通过stdio通信,调试可能会很困难。我们推荐使用MCP Inspector,它作为一个包脚本可用:
npm run inspector
Inspector将提供一个URL,以便您可以在浏览器中访问调试工具。
本项目根据MIT许可证发布。