MCP Knowledge Base

by ikungsjl

Not rated
GitHub

About

A knowledge base server that processes local documents (PDF, DOCX, TXT, HTML) and answers questions based on their content using similarity search.

Details

Author
ikungsjl
Categories
Search, Knowledge Base, Other

Setup

Install MCP Knowledge Base in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/ikungsjl/mcp-knowledge-base

Follow the installation instructions in the repository README, then restart your MCP client.

这是一个基于 Model Context Protocol (MCP) 的知识库服务器,可以处理本地文档并根据文档内容回答问题。

- 支持多种文档格式:PDF、DOCX、TXT、HTML
- 自动文档索引和搜索
- 基于相似度的文档检索
- 完整的 MCP 协议支持
- 中文文档处理支持

{ "name": "mcp-knowledge-base", "version": "1.0.0", "description": "基于本地文档的知识库问答MCP服务器", "author": "yjy", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/ikungsjl/mcp-knowledge-base.git" }, "keywords": ["mcp", "knowledge-base", "document-processing", "qa"], "main": "dist/index.js", "type": "module", "scripts": { "build": "tsc", "start": "node dist/index.js", "dev": "tsx src/index.ts" }, "dependencies": { "@modelcontextprotocol/sdk": "^0.4.0", "pdf-parse": "^1.1.1", "mammoth": "^1.6.0", "cheerio": "^1.0.0-rc.12", "natural": "^6.10.4", "fs-extra": "^11.2.0", "glob": "^10.3.10" }, "devDependencies": { "@types/node": "^20.10.0", "@types/fs-extra": "^11.0.4", "@types/natural": "^5.1.5", "@types/pdf-parse": "^1.1.4", "typescript": "^5.3.0", "tsx": "^4.6.0" }, "mcp": { "server": { "command": "node", "args": ["dist/index.js"], "env": {} }, "tools": [ { "name": "add_document", "description": "添加单个文档到知识库", "inputSchema": { "type": "object", "properties": { "file_path": { "type": "string", "description": "文档文件路径" } }, "required": ["file_path"] } }, { "name": "add_directory", "description": "添加目录中的所有文档到知识库", "inputSchema": { "type": "object", "properties": { "directory_path": { "type": "string", "description": "目录路径" } }, "required": ["directory_path"] } }, { "name": "query_knowledge_base", "description": "查询知识库", "inputSchema": { "type": "object", "properties": { "question": { "type": "string", "description": "查询问题" }, "max_results": { "type": "number", "description": "最大返回结果数", "default": 5 }, "threshold": { "type": "number", "description": "相似度阈值", "default": 0.1 } }, "required": ["question"] } }, { "name": "list_documents", "description": "列出知识库中的所有文档", "inputSchema": { "type": "object", "properties": {} } }, { "name": "get_document", "description": "获取特定文档信息", "inputSchema": { "type": "object", "properties": { "document_id": { "type": "string", "description": "文档ID" } }, "required": ["document_id"] } }, { "name": "remove_document", "description": "从知识库中移除文档", "inputSchema": { "type": "object", "properties": { "document_id": { "type": "string", "description": "文档ID" } }, "required": ["document_id"] } }, { "name": "clear_knowledge_base", "description": "清空知识库", "inputSchema": { "type": "object", "properties": {} } }, { "name": "get_stats", "description": "获取知识库统计信息", "inputSchema": { "type": "object", "properties": {} } } ] } }
{ "mcpServers": { "knowledge-base": { "command": "node", "args": ["dist/index.js"], "env": {} } } }

- add_document: 添加单个文档到知识库
- add_directory: 添加目录中的所有文档到知识库

- list_documents: 列出所有文档
- get_document: 获取特定文档信息
- remove_document: 移除文档
- clear_knowledge_base: 清空知识库
- get_stats: 获取统计信息

src/ ├── types.ts # 类型定义 ├── document-processor.ts # 文档处理器 ├── knowledge-base.ts # 知识库核心 ├── mcp-server.ts # MCP 服务器 └── index.ts # 入口文件

Search global news using natural language. Webz.io News Search API returns the most relevant articles and content, with filters for source, country, language, date, sentiment, and category.

Production-ready RAG out of the box to search and retrieve data from your own documents.

Vectorize MCP server for advanced retrieval, Private Deep Research, Anything-to-Markdown file extraction and text chunking.

An MCP server providing semantic search capabilities for APLCart data.

MCP server for Christian scholarship and research — scripture, Greek/Hebrew word data, cross-references, patristic texts, and semantic search,

Codicil indexes a repo's Markdown/YAML/TOML docs into a local Chroma store and exposes query_docs/reindex_docs over MCP. Uses Ollama embeddings when available; with zero infra beyond that, it degrades to live keyword search off disk instead of failing.

Creates a personal, always-current knowledge base for AI by indexing documentation from websites, GitHub, npm, PyPI, and local files.

Access and search EPUB ebook collections using semantic vector search.

Provides full-text and semantic search over structured and unstructured data using Azure Cognitive Search.

Local RAG system for Claude Code with hybrid search (semantic + BM25), cross-encoder reranking, markdown-aware chunking, 9 file formats, file watcher, and 12 MCP tools. Zero external servers. pip install knowledge-rag

Search a personal knowledge vault using hybrid semantic and keyword matching.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.