ontomics
by EtienneChollet·★ 31·Score 44
ontomics extracts domain knowledge from codebases via MCP, reducing token consumption 20x and search time 10x by making concepts and naming conventions queryable.
Overview
ontomics is a Rust-based MCP server that builds semantic indexes of codebases by clustering related symbols into concepts, detecting naming conventions, resolving abbreviations, and grouping functions by behavioral similarity. It runs entirely locally with no API keys required, parsing source files with tree-sitter and using embedding models to cluster concepts and logic. The server provides tools for querying concepts, tracing vocabulary changes, finding functionally similar code, and exporting domain knowledge as portable artifacts.
Try asking AI
After installing, here are 7 things you can ask your AI assistant:
When to choose this
Choose ontomics when working with large codebases where you need to quickly understand domain concepts, naming conventions, and behavioral relationships without excessive token consumption.
When NOT to choose this
Avoid ontomics if you need real-time collaboration features or if your project uses languages not supported by the tool (currently only Python, TypeScript, JavaScript, and Rust).
Tools this server exposes
12 tools extracted from the READMEquery_conceptFind all variants, related concepts, and occurrences of a term
locate_conceptFind the key signatures, classes, and files for a concept
describe_symbolGet the signature, docstring, and relationships for a function or class
trace_conceptTrace how a concept flows through the codebase via call chains
find_similar_logicFind functions with behaviorally similar implementations
describe_logicGet the behavioral description and logic cluster membership for a function
compact_contextAssemble tiered context for a symbol, optimized for LLM consumption
describe_fileOverview of a file's entities, concepts, and relationships
concept_mapShow which modules contain which domain concepts
list_conceptsList the top domain concepts by frequency
check_namingCheck an identifier against project conventions
export_domain_packExport domain knowledge as portable YAML
Comparable tools
Installation
Install ontomics using your preferred method:
**npm (macOS/Linux):**
npm install -g @ontomics/ontomics**macOS (Homebrew):**
brew install EtienneChollet/tap/ontomics**Register with Claude Desktop:** Add to your claude_desktop_config.json:
{
"mcpServers": {
"ontomics": {
"command": "ontomics"
}
}
}**Share with your team** — drop an .mcp.json in your repo root:
{
"mcpServers": {
"ontomics": {
"command": "npx",
"args": ["-y", "@ontomics/ontomics", "--repo", "."]
}
}
}FAQ
- How does ontomics reduce token consumption by 20x?
- ontomics builds a semantic index of domain concepts, allowing LLMs to find information about concepts in a single tool call instead of searching through multiple files and making numerous tool calls.
- What programming languages does ontomics support?
- Currently supports Python, TypeScript, JavaScript, and Rust, auto-detected from file extensions.
- Is any data sent to external servers?
- No, ontomics processes everything locally on your machine with no API keys required. The index is stored locally at <repo>/.ontomics/index.db.
Compare ontomics with
Last updated · Auto-generated from public README + GitHub signals.