MisakaNet exposes its lesson knowledge base via the Model Context Protocol, enabling AI assistants to search and retrieve engineering lessons in real time.
cd MisakaNet
pip install -r requirements.txt# Start the MCP server (stdio transport)
python3 scripts/mcp_server.pyAdd to your ~/.claude/settings.json (or project .claude/settings.json):
{
"mcpServers": {
"misakanet": {
"command": "python3",
"args": ["/path/to/MisakaNet/scripts/mcp_server.py"]
}
}
}Create .cursor/mcp.json in your project root:
{
"mcpServers": {
"misakanet": {
"command": "python3",
"args": ["/path/to/MisakaNet/scripts/mcp_server.py"],
"env": {}
}
}
}Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"misakanet": {
"command": "python3",
"args": ["/path/to/MisakaNet/scripts/mcp_server.py"]
}
}
}| Tool | Description | Parameters |
|---|---|---|
misakanet.search |
Search lessons by query | query (required), domain?, top? (default 5) |
misakanet.get_lesson |
Get a specific lesson | path_or_id (required) |
misakanet.submit_usage |
Report lesson usage | lesson_id (required), tool?, outcome? |
By default, the server searches core and contrib lessons only. Drafts are excluded to avoid surfacing unverified content.
The server uses two search backends (auto-detected):
- SAG-Lite (SQLite) — fast, pre-built index at
data/sag.db - BM25 (fallback) — real-time search via
misakanet.search.engine
If neither is available, the server returns an error suggesting index rebuild:
python3 scripts/build_sag_index.pyRun the built-in smoke test to verify your setup:
python3 tests/test_mcp_server.pyThis tests:
searchreturns results withpath,status, andbadgefieldsget_lessonreturns lesson content- Default scope excludes drafts