MCP With Claude Code
OntoMCP With Claude Code
Install
Install the runtime first:
npx ontoskills install mcpThis gives you the managed runtime binary:
~/.ontoskills/bin/ontomcpRegister The Server
Recommended command:
claude mcp add --scope local ontoskills \ ~/.ontoskills/bin/ontomcpIf you want to force a specific ontology root:
claude mcp add --scope local ontoskills \ ~/.ontoskills/bin/ontomcp \ -- --ontology-root ~/.ontoskills/ontoskillsVerify
claude mcp get ontoskillsclaude mcp listExpected state:
Status: ✓ ConnectedWhat Claude Code Can Use
Once connected, Claude Code can call:
search_skillsget_skill_contextevaluate_execution_planquery_epistemic_rules
Troubleshooting
Connection fails
Check:
~/.ontoskills/bin/ontomcpexists~/.ontoskills/ontoskills/existsindex.enabled.ttlor compiled.ttlfiles exist
Ontology not found
Run with an explicit root:
~/.ontoskills/bin/ontomcp --ontology-root ~/.ontoskills/ontoskillsRebuilt binary but Claude still behaves strangely
Remove and re-add the MCP server, or restart Claude Code. A stale background process can keep the old binary alive.