Back to MCP directory
publicPublicdnsLocal runtime

Langflow-DOC-QA-SERVER

一个基于Langflow的文档问答MCP服务器,提供通过TypeScript实现的文档查询接口,支持与Claude Desktop集成。

article

README

🚀 语言流-文档问答-MCP服务器

这是一个由 Langflow 支持的文档问答系统,它演示了核心 MCP 概念,用户可通过简单接口查询文档。

Badge MCP 服务器 Smithery 徽章

🚀 快速开始

先决条件

1. 创建 Langflow 文档问答流程

  • 打开 Langflow 并从 "文档问答" 模板创建新流程。
  • 配置您的流程与必要的组件(聊天输入、文件上传、LLM 等)。
  • 保存您的流程。

图像

2. 获取流程 API 终端

  • 点击 Langflow 右上角的 "API" 按钮。
  • 复制 cURL 命令中的 API 终点 URL,示例:http://127.0.0.1:7860/api/v1/run/<flow-id>?stream=false
  • 保存此 URL,因为它将用于 API_ENDPOINT 配置。

图像

✨ 主要特性

工具

  • query_docs - 查询文档问答系统
    • 接受查询字符串作为输入。
    • 返回 Langflow 后端的回答。

📦 安装指南

开发

安装依赖

npm install

构建服务器

npm run build

带有自动重建的开发

npm run watch

安装配置

与 Claude 桌面一起使用时,添加服务器配置:

  • 在 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-29d3-4d18-9a39-57af4240b7ac"
      }
    }
  }
}

💻 使用示例

调试

使用 Inspector 工具检查服务器:

npm run inspect

在浏览器中访问 http://localhost:3000/debug

📄 许可证

本项目受 MIT 许可证授权。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client