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
A Model Context Protocol (MCP) server for document Question Answering (Q&A) powered by Langflow.
This TypeScript-based server implements a document Q&A system, demonstrating core MCP concepts by providing an interface to query documents through a Langflow backend.
API_ENDPOINT configuration.query_docs - Queries the document Q&A system. It takes a query string as input and returns responses from the Langflow backend.Install dependencies using npm install, build the server with npm run build, and use npm run watch for development with auto-rebuild.
To use with Claude Desktop, add the server configuration to claude_desktop_config.json (location varies by OS). The configuration includes the command to run the server, arguments, and environment variables.
API_ENDPOINT: The Langflow API endpoint URL. Defaults to http://127.0.0.1:7860/api/v1/run/480ec7b3-29d2-4caa-b03b-e74118f35fac if not specified.Use the MCP Inspector for debugging via npm run inspector.
This project is licensed under the MIT License.
GongRzhe/Langflow-DOC-QA-SERVER
February 23, 2025
March 28, 2025
JavaScript