KnowFlow MCP

KnowFlow MCP

A unified knowledge retrieval tool for MCP-compatible LLMs, enabling structured external knowledge access from local files and future integrations.

Category
访问服务器

README

KnowFlow MCP

License: MIT

A versatile, unified knowledge retrieval tool operating according to the Model Context Protocol (MCP). KnowFlow enhances Large Language Models by providing structured external knowledge on demand.

🚀 Overview

KnowFlow simulates a simplified version of Retrieval-Augmented Generation (RAG), enabling LLMs to dynamically fetch context or domain-specific information from external knowledge bases, resulting in precise, context-aware responses.

KnowFlow Architecture

Core Features

  • Responds to knowledge retrieval requests from MCP-compatible LLMs
  • Performs searches across knowledge sources based on queries received from LLMs
  • Provides structured responses with clear source metadata
  • Establishes a foundation for integration with multiple knowledge sources

📋 Requirements

  • Node.js (version 16.x or higher)
  • TypeScript (version 4.x or higher)
  • npm or yarn

🛠️ Installation

# Clone the repository
git clone https://github.com/esurovtsev/know-flow-mcp.git
cd know-flow-mcp

# Install dependencies
npm install
# or
yarn install

🔧 Configuration

Create a .env file in the root directory with the following configuration:

KNOWLEDGE_DIR=./knowledge

Where KNOWLEDGE_DIR is the path to the directory containing your knowledge base files (.txt and .md files).

🚀 Usage

# Build the project
npm run build
# or
yarn build

# Start the server
npm start
# or
yarn start

🔗 MCP Configuration

To use KnowFlow with any MCP-compatible LLMs (such as Claude, GPT-4, etc.), you can use the provided mcp-config.json file:

{
  "mcpServers": {
    "knowflow": {
      "command": "node",
      "args": ["dist/index.js"]
    }
  }
}

This configuration file tells MCP-compatible LLMs how to start and connect to the KnowFlow MCP server. You would typically place this file in your project directory and reference it when setting up the LLM to use MCP servers.

Note: Once KnowFlow is stable and published to npm, the command will change to npx know-flow-mcp instead of node dist/index.js.

🧪 Testing with MCP Inspector

The MCP Inspector is a tool that allows you to test your MCP server without needing to integrate with an LLM.

# Run the Inspector with your MCP server
npx @modelcontextprotocol/inspector node dist/index.js

This will start the MCP Inspector web interface (typically at http://127.0.0.1:6274) where you can:

  1. View all available tools exposed by the server
  2. Test the search_knowledge tool by sending requests with different parameters
  3. View the responses and debug the communication

If you encounter port conflicts, you can specify custom ports:

npx @modelcontextprotocol/inspector node dist/index.js --port 8080 --proxy-port 8081

Where:

  • --port specifies the web interface port (default: 6274)
  • --proxy-port specifies the proxy server port (default: 6277)

Example Response Format

{
  "content": "We agreed to consolidate all backend modules under a single monorepo using Nx.",
  "metadata": {
    "reference": "architecture-notes.md",
    "source": "docs",
    "lastModified": "2024-03-14",
    "score": 0.95
  }
}

🧪 Testing

# Run tests
npm test
# or
yarn test

📝 API Documentation

Detailed API documentation will be available once the project reaches a more mature stage.

🗂️ Project Structure

know-flow-mcp/
├── src/                # Source code
│   ├── index.ts        # Entry point
│   ├── server.ts       # MCP server definition and tool registration
│   ├── core/           # Core functionality
│   ├── plugins/        # Plugin system for knowledge sources
│   └── services/       # Services including KnowledgeService
├── dist/               # Compiled JavaScript files
├── .gitignore          # Git ignore file
├── LICENSE             # MIT License
├── package.json        # Project metadata and dependencies
├── README.md           # Project documentation
└── tsconfig.json       # TypeScript configuration

🔌 Plugin System

KnowFlow uses a plugin-based architecture to integrate with different knowledge sources:

  • Plugins are discovered synchronously at startup
  • Each plugin represents a different knowledge source (docs, jira, confluence, etc.)
  • The KnowledgeService coordinates searches across all available plugins
  • New knowledge sources can be added by implementing the plugin interface

🔮 Future Roadmap

The foundational design explicitly anticipates integration with additional knowledge sources such as:

  • Notion pages
  • Confluence documentation
  • Google Docs documents
  • Linear and Jira issues or tickets
  • Other popular knowledge repositories utilized by developers and organizations

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选