Skip to main content
Glama

MCP Knowledge Base Server

by ikungsjl
modelscope.json3.77 kB
{ "name": "mcp-knowledge-base", "version": "1.0.0", "description": "基于本地文档的知识库问答MCP服务器", "author": "Your Name", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/yourname/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": {} } } ] } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ikungsjl/mcp-knowledge-base'

If you have feedback or need assistance with the MCP directory API, please join our Discord server