# Langflow-DOC-QA-SERVER

> MCP Server

This repository provides a Model Context Protocol (MCP) server for document question answering, leveraging Langflow to create a backend for querying documents. It offers a simple interface to interact with

## Overview

- **Category:** AI
- **Language:** JavaScript
- **Stars:** 15
- **Forks:** 0
- **Owner:** GongRzhe
- **GitHub:** https://github.com/GongRzhe/Langflow-DOC-QA-SERVER
- **Created:** 2025-02-23T09:06:44+00:00
- **Updated:** 2025-03-28T18:00:53+00:00
- **Source:** https://model-context-protocol.com/servers/langflow-document-question-answering-mcp-server

## Setup

## Setup

### 1. Create Langflow Document Q&A Flow
1. Open Langflow and create a new flow from the "Document Q&A" template
2. Configure your flow with necessary components (ChatInput, File Upload, LLM, etc.)
3. Save your flow

### 2. Get Flow API Endpoint
1. Click the "API" button in the top right corner of Langflow
2. Copy the API endpoint URL from the cURL command
   Example: `http://127.0.0.1:7860/api/v1/run/<flow-id>?stream=false`
3. Save this URL as it will be needed for the `API_ENDPOINT` configuration

To use with Claude Desktop, add the server config:

On MacOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
On Windows: `%APPDATA%/Claude/claude_desktop_config.json`

```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"
      }
    }
  }
}
```

## Tools

## Available Tools

1. `query_docs` (Query the document Q&A system, takes a query string as input and returns responses from the Langflow backend)
