Featured

Deploy OpenClaw in 60 seconds β€” 20% off logoDeploy OpenClaw in 60 seconds β€” 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger β†’
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger β†’
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free β†’
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now β†’
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data β€” no proxies, no parsers, no maintenance.

Start building free β†’
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it β€” secured from day one.

Get it set up for you β†’
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free β†’
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here β†’

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

EtienneChollet/ontomics MCP server](https://glama.ai/mcp/servers/EtienneChollet/ontomics/badges/score.svg)](https://glama.ai/mcp/servers/EtienneChollet/ontomics) πŸ¦€ 🏠 🍎 🐧 - Semantic code index that extracts domain concepts, naming conventions, and...

README.md

ontomics

!Python !Rust !TypeScript !JavaScript !platform !MCP ![MCP Registry](https://registry.modelcontextprotocol.io/) ![Glama](https://glama.ai/mcp/servers/EtienneChollet/ontomics) !Claude Code !Codex !pi

ontomics gives any coding agent instant knowledge of your codebase. One tool call instead of 19. ~20x fewer tokens.

https://github.com/user-attachments/assets/01afa8a0-1bc2-4686-94d7-965fef7610c3

Visualization for the voxelmorph project -- a library for unsupervised learning in image registration

Benchmark

Tested with Claude Sonnet β€” same question, with and without ontomics.

"What does 'transform' mean in this codebase?" on voxelmorph (full transcript):

| | With ontomics | Without | |----------------|---------------|------------| | Tool calls | 1 | 19 | | Tokens | ~3.7k | ~76k | | Time | 5s | 1m 15s | | Answer quality | Complete | Complete |

"What are the main domain concepts in this codebase?" on ScribblePrompt (full transcript):

| | With ontomics | Without | |----------------|---------------|------------| | Tool calls | 1 | 26 | | Tokens | ~3.7k | ~61.6k | | Time | ~5s | 56s | | Answer quality | Complete | Complete |

Both conditions produced complete, correct answers. ontomics got there in one call.

What it does that search can't

Search tells you where a string appears. An LSP tells you where a symbol is defined and referenced. Neither answers: what are the domain concepts in this codebase? How do they relate? What naming conventions emerged? What changed in the domain vocabulary since last release? Which functions behave similarly, regardless of what they're named?

ontomics builds a semantic index of your project's domain β€” clustering related symbols into concepts, detecting naming conventions from usage frequency, resolving abbreviations, grouping functions by behavioral similarity, and tracking how the vocabulary evolves over time. That index can be exported as a portable artifact to bootstrap conventions in other repos.

Behavioral similarity

Beyond naming and concepts, ontomics embeds raw function bodies using CodeRankEmbed (768-dim, contrastive code retrieval) and clusters them by behavioral similarity. This surfaces relationships that neither naming nor call graphs expose:

❯ What functions behave like spatial_transform()?

  random_transform()   nn/functional.py:352   0.80
  spatial_transform()  functional.py:596      0.69
  random_transform()   functional.py:1399     0.67
  random_disp()        nn/functional.py:275   0.65
  integrate_disp()     functional.py:764      0.65
  compose()            nn/functional.py:216   0.63
  disp_to_trf()        functional.py:343      0.62

The result also reveals that random_transform appears at two locations with different similarity scores β€” a sign of implementation duplication that concept-level search would miss entirely.

Install

Install once, available in every project. No configuration needed β€” ontomics auto-detects the repo and indexes it on first run.

ontomics requires a git repository (.git/ directory). It will refuse to index home, root, or temp directories. To index a non-git directory, pass --force.

1. Install the binary

npm (macOS/Linux): ``bash npm install -g @ontomics/ontomics ``

macOS (Homebrew): ``bash brew install EtienneChollet/tap/ontomics ``

Shell installer (macOS/Linux): ``bash curl --proto '=https' --tlsv1.2 -LsSf https://github.com/EtienneChollet/ontomics/releases/latest/download/ontomics-installer.sh | sh ``

From source: ``bash git clone https://github.com/EtienneChollet/ontomics.git cd ontomics cargo build --release ``

2. Register with your harness

Claude Code: ``bash claude mcp add -s user ontomics -- ontomics ``

Codex: ``bash codex mcp add ontomics -- ontomics ``

OpenClaw: ``bash openclaw mcp set ontomics '{"command":"ontomics"}' ``

pi-coding-agent: ``bash pi install npm:@ontomics/ontomics ``

Share with your team β€” drop an .mcp.json in your repo root: ``json { "mcpServers": { "ontomics": { "command": "npx", "args": ["-y", "@ontomics/ontomics", "--repo", "."] } } } ``

Supported languages

Python, TypeScript, JavaScript, Rust. Auto-detected from file extensions.

Tools

Concepts and vocabulary

| Tool | What it does | |------|--------------| | query_concept | Find all variants, related concepts, and occurrences of a term | | locate_concept | Find the key signatures, classes, and files for a concept | | describe_symbol | Get the signature, docstring, and relationships for a function or class | | trace_concept | Trace how a concept flows through the codebase via call chains | | list_concepts | List the top domain concepts by frequency | | list_conventions | List all detected naming patterns (prefixes, suffixes, conversions) | | list_entities | List code entities (classes, functions) filtered by concept, role, or kind | | check_naming | Check an identifier against project conventions; suggests the canonical form | | suggest_name | Generate an identifier name that fits the project's vocabulary | | vocabulary_health | Measure convention coverage, naming consistency, and cluster cohesion | | ontology_diff | Show new, changed, or removed domain concepts since a git ref | | export_domain_pack | Export domain knowledge as portable YAML for use in other repos |

Behavioral similarity

| Tool | What it does | |------|--------------| | find_similar_logic | Find functions with behaviorally similar implementations, ranked by embedding similarity | | describe_logic | Get the behavioral description, body text, and logic cluster membership for a function | | compact_context | Assemble tiered context (concepts + logic) for a symbol, optimized for LLM consumption |

Codebase structure

| Tool | What it does | |------|--------------| | describe_file | Overview of a file's entities, concepts, and relationships | | concept_map | Show which modules contain which domain concepts | | type_flows | Show dominant types and how data flows through the codebase | | trace_type | Trace how a specific type propagates across files and call sites |

Resources

| Resource | What it does | |----------|--------------| | ontomics://briefing | Session briefing: top conventions, abbreviations, key concepts, contrastive pairs, and vocabulary warnings. Also available via ontomics briefing CLI. |

How it works

ontomics runs a multi-stage pipeline entirely on your machine β€” no API keys required:

  1. Parse β€” tree-sitter extracts every identifier, signature, and call site from your source files
  2. Analyze β€” TF-IDF scoring identifies domain-specific concepts and detects naming conventions
  3. Embed (concepts) β€” BGE-small (384-dim) clusters related concepts by semantic similarity
  4. Embed (logic) β€” CodeRankEmbed (768-dim) embeds raw function bodies and clusters them by behavioral similarity
  5. Centrality β€” PageRank scores entities by structural importance

Both embedding models are downloaded once on first run and cached locally. The index lives at <repo>/.ontomics/index.db β€” subsequent startups load from cache and watch for file changes.

Configuration via .ontomics/config.toml in the repo root. All fields have sensible defaults. See SPEC.md for the full design contract.

See related servers & alternatives β†’

Related MCP servers

Browse all β†’

Related guides

Hand-picked reading to help you choose and use Developer Tools servers.