semantic-code-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SEMANTIC_CODE_ROOT | No | Root directory to index. Defaults to the current working directory. | Current working directory |
| SEMANTIC_CODE_INDEX | No | Custom index storage location. | .semantic-code/index/ |
| SEMANTIC_CODE_EDGE_KINDS | No | Comma-separated edge types to follow. | all types |
| SEMANTIC_CODE_GRAPH_DEPTH | No | Default graph traversal depth (1-5). | 2 |
| SEMANTIC_CODE_SESSION_TTL | No | Session TTL in seconds. | 3600 |
| SEMANTIC_CODE_GRAPH_ENABLED | No | Enable the context graph. | false |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| semantic_searchA | Search code semantically using natural language queries. Finds relevant code by understanding meaning, not just keywords. Useful for finding implementations, usage patterns, or related code. On first use, indexes the codebase (may take a moment for large projects). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 1 tool
With only a single tool in the set, there is no possibility of confusing it with another tool. Its purpose is clearly scoped to semantic code search.
semantic_search is a single, readable snake_case name that clearly describes the action. There is no second name to compare against, so consistency cannot be fully demonstrated, but the convention itself is clean.
One tool is on the thin side even for a focused search server; there is no companion operation such as fetching a file, filtering results, or managing the index. The count is defensible for a minimal server but leaves little surface to work with.
Search is covered, but common follow-ups are missing: retrieving full file contents, scoping by path or language, paging through results, or explicitly triggering a reindex. Agents can work around some of this but will hit dead ends when they need the actual code context.