mcp-knowledge-base
mcp-knowledge-base
一个Model Context Protocol(MCP)服务器,向 MCP 客户端(Claude Desktop、IDE 或任何代理)暴露笔记知识库。它演示了 MCP 服务器提供的两样东西:工具(模型可以调用的操作)和资源(模型可以读取的数据)。使用 TypeScript 编写,通过 stdio 运行。
它提供了什么
工具(src/server.ts):
Tool | Purpose |
| 跨知识库进行关键词搜索(标题/标签/内容加权) |
| 添加新笔记 |
| 按 id 获取单条笔记 |
资源: 每条笔记都可以通过 note://{id} 读取,并提供列表——因此客户端可以将知识库作为数据浏览,而不仅仅是调用工具。
领域逻辑(笔记存储 + 搜索排序)位于 src/notes.ts 中,与协议层分离。
Related MCP server: approveit MCP Server
与 MCP 客户端一起使用
构建它,然后将客户端指向该二进制文件。例如,在 Claude Desktop 的 claude_desktop_config.json 中:
{
"mcpServers": {
"knowledge-base": { "command": "node", "args": ["/abs/path/to/dist/index.js"] }
}
}npm install && npm run build
node dist/index.js # speaks MCP over stdio测试
npm test两层,均离线运行:
单元测试 — 笔记存储和搜索排序。
集成测试 — 一个真实的 MCP
Client通过内存传输与服务器通信(与客户端通过 stdio 通信的方式相同):它列出工具,调用search_notes/add_note/get_note,并读取note://资源。共 9 个测试。
许可证
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Notes, files, GitHub, and Drive through one MCP connection.
Notes, files, GitHub, and Drive through one MCP connection.
Notes, files, GitHub, and Drive through one MCP connection.
Persistent memory layer for AI tools. Save and recall notes across Claude and other MCP clients.
Related MCP Servers
- -licenseCqualityDmaintenanceEnables creating and managing text notes through MCP resources and tools. Provides note creation capabilities and automatic summarization of all stored notes.1
- -licenseNot gradedqualityNot gradedmaintenanceA simple notes system that allows creating, storing, and accessing text notes through MCP resources and tools, with built-in prompt support for generating summaries of stored notes.
- FlicenseNot gradedqualityDmaintenanceProvides MCP tools to create and retrieve notes stored in memory.
- FlicenseNot gradedqualityCmaintenanceEnables users to create and manage notes through Claude Desktop using MCP tools.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/gaurav-oberoi/mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server