mcp-knowledge-base
mcp-knowledge-base
Ein Model Context Protocol (MCP)-Server, der eine Notiz-Wissensdatenbank für MCP-Clients bereitstellt – Claude Desktop, IDEs oder beliebige Agenten. Er demonstriert die zwei Dinge, die ein MCP-Server bietet: Tools (Aktionen, die das Modell aufrufen kann) und Ressourcen (Daten, die das Modell lesen kann). TypeScript, läuft über stdio.
Was er bereitstellt
Tools (src/server.ts):
Tool | Zweck |
| Stichwortsuche in der Wissensdatenbank (Titel/Tags/Inhalt gewichtet) |
| eine neue Notiz hinzufügen |
| eine Notiz anhand der ID abrufen |
Ressourcen: Jede Notiz ist unter note://{id} lesbar, mit einer Auflistung – so kann ein Client die Wissensdatenbank als Daten durchsuchen, nicht nur Tools aufrufen.
Die Domänenlogik (der Notizspeicher + Suchranking) befindet sich in src/notes.ts, getrennt von der Protokollschicht.
Related MCP server: simple-mcp-example
Verwendung mit einem MCP-Client
Erstellen Sie es und richten Sie dann einen Client auf die Binärdatei aus. Zum Beispiel in der claude_desktop_config.json von Claude Desktop:
{
"mcpServers": {
"knowledge-base": { "command": "node", "args": ["/abs/path/to/dist/index.js"] }
}
}npm install && npm run build
node dist/index.js # speaks MCP over stdioTests
npm testZwei Ebenen, beide offline:
Unit – der Notizspeicher und das Suchranking.
Integration – ein echter MCP-
Clientspricht mit dem Server über einen In-Memory-Transport (so wie ein Client über stdio): Er listet Tools auf, ruftsearch_notes/add_note/get_noteauf und liest einenote://-Ressource. Insgesamt 9 Tests.
Lizenz
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Search, read, write, and organize your Scratchpad notes from any MCP client.
Read and write your Caliu notes from any MCP client: search, create, tag, remind, attach files.
Notes, files, GitHub, and Drive through one MCP connection.
Notes, files, GitHub, and Drive through one MCP connection.
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-
- FlicenseNot gradedqualityBmaintenanceEnables managing local Markdown notes by creating, viewing, listing, and searching notes and their contents through MCP tools.-
- AlicenseNot gradedqualityCmaintenanceEnables creating, retrieving, updating, deleting, and listing notes through a simple MCP interface, with configurable note storage.MIT
- FlicenseNot gradedqualityCmaintenanceEnables managing notes through add, get, update, delete, and list tools via MCP.-