loading…
Search for a command to run...
loading…
A local MCP server that allows AI systems to search and retrieve information from a custom knowledge base generated from markdown files. It provides tools for n
A local MCP server that allows AI systems to search and retrieve information from a custom knowledge base generated from markdown files. It provides tools for natural language text search, category browsing, and specific content chunk retrieval.
A local MCP (Model Context Protocol) server that enables AI systems like Claude Desktop to search and query a knowledge base.
# Install dependencies
npm install
# Build the TypeScript code
npm run build
| Tool | Description |
|---|---|
search_knowledge |
Search for relevant information using a query string |
get_chunk |
Retrieve a specific chunk by its ID |
list_categories |
List all available categories in the knowledge base |
Add this server to your Claude Desktop configuration:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"knowledge-base": {
"command": "node",
"args": ["/path/to/local-mcp-simple/dist/index.js"]
}
}
}
After updating the config, restart Claude Desktop. You can then ask Claude to search the knowledge base, for example:
"Search the knowledge base for speed limits in school zones"
# Build and run
npm run dev
# Or run separately
npm run build
npm start
You can generate a new knowledge.json from any markdown file using the included script:
# Generate from a markdown file
npm run generate-knowledge -- ./path/to/your-document.md
# Specify output location
npm run generate-knowledge -- ./docs/handbook.md ./src/knowledge/knowledge.json
The script parses markdown headings to create chunks:
#) - Sets the category for subsequent chunks##) - Creates a new chunk with this title###) - Also creates a new chunk with this title####) - Included as bold text within the current chunkExample markdown:
# Licences
## Getting your driver licence
To get a full driver licence, you need to go through three stages...
## Learner licence restrictions
There are licence restrictions that you need to follow...
# Speed Limits
## The rules
On roads where there's a speed limit sign, you must not drive faster...
This would create 3 chunks:
The server uses src/knowledge/knowledge.json which contains pre-chunked content for search.
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"knowledge-base-mcp-server": {
"command": "npx",
"args": []
}
}
}