MCP server for trelix — semantic code search for Claude Code, Cursor, Windsurf, Continue.dev
Project description
trelix-mcp
MCP server for trelix v0.7.0 — semantic code search for Claude Code, Cursor, Windsurf, and Continue.dev.
Install
pip install trelix-mcp
To use Bedrock embeddings or synthesis (no extra API key beyond AWS credentials):
pip install "trelix-mcp" "trelix[bedrock]"
Other optional LLM provider extras:
pip install "trelix-mcp" "trelix[anthropic]" # Anthropic Claude direct
pip install "trelix-mcp" "trelix[vertex]" # Google Vertex AI / Gemini
pip install "trelix-mcp" "trelix[litellm]" # 100+ providers via LiteLLM
pip install "trelix-mcp" "trelix[llm-all]" # all LLM providers
Usage
Claude Code
claude mcp add trelix -- trelix-mcp
Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"trelix": {
"command": "trelix-mcp",
"args": []
}
}
}
Continue.dev (.continue/config.json)
{
"mcpServers": [
{
"name": "trelix",
"command": "trelix-mcp",
"args": []
}
]
}
Configuration
Set environment variables before starting the MCP server. All variables are optional — defaults work out of the box with the local embedding provider and openai chat provider.
Embedding provider
# Local sentence-transformers — no API key (default)
TRELIX_EMBEDDER_PROVIDER=local
# Azure OpenAI embeddings
TRELIX_EMBEDDER_PROVIDER=azure
AZURE_API_KEY=...
AZURE_ENDPOINT=https://<resource>.openai.azure.com/
# Voyage AI — best API-based code embeddings (CoIR 56.26)
TRELIX_EMBEDDER_PROVIDER=voyage
VOYAGE_API_KEY=...
# AWS Bedrock Cohere — strong code retrieval, no extra key beyond AWS creds
TRELIX_EMBEDDER_PROVIDER=bedrock-cohere
AWS_ACCESS_KEY_ID=...
AWS_SECRET_ACCESS_KEY=...
AWS_REGION=us-east-1
# AWS Bedrock Titan v2 — configurable 256/512/1024 dims
TRELIX_EMBEDDER_PROVIDER=bedrock-titan
AWS_ACCESS_KEY_ID=...
AWS_SECRET_ACCESS_KEY=...
AWS_REGION=us-east-1
Chat / synthesis provider (used by index_codebase contextual chunking and synthesis)
# OpenAI (default)
TRELIX_LLM_PROVIDER=openai
OPENAI_API_KEY=sk-...
# Azure GPT-4o
TRELIX_LLM_PROVIDER=azure
AZURE_API_KEY=...
AZURE_ENDPOINT=https://<resource>.openai.azure.com/
# AWS Bedrock — Claude Sonnet 4.6 default with auto-fallback to Haiku
TRELIX_LLM_PROVIDER=bedrock
AWS_ACCESS_KEY_ID=...
AWS_SECRET_ACCESS_KEY=...
AWS_REGION=us-east-1
# Optional overrides:
TRELIX_LLM_BEDROCK_PRIMARY_MODEL=us.anthropic.claude-sonnet-4-6
TRELIX_LLM_BEDROCK_FALLBACK_MODEL=us.anthropic.claude-haiku-4-5-20251001-v1:0
# Anthropic direct
TRELIX_LLM_PROVIDER=anthropic
ANTHROPIC_API_KEY=sk-ant-...
# Google Vertex AI / Gemini
TRELIX_LLM_PROVIDER=vertex
GOOGLE_CLOUD_PROJECT=my-project
GOOGLE_CLOUD_LOCATION=us-central1
# LiteLLM — 100+ providers
TRELIX_LLM_PROVIDER=litellm
TRELIX_LLM_MODEL=bedrock/claude-3-5-sonnet
Tools
| Tool | Description |
|---|---|
search_code |
Semantic hybrid search over an indexed codebase |
index_codebase |
Index a repository so it can be searched |
get_symbol |
Look up a symbol by qualified name |
blast_radius |
Find all files that depend on a symbol |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trelix_mcp-1.0.0.tar.gz.
File metadata
- Download URL: trelix_mcp-1.0.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07ef1a267af497d91d1a97972e845169c4ff4f55f9fe8df481cfba462352b992
|
|
| MD5 |
dad59cafacf9d15462148295b4c7ad24
|
|
| BLAKE2b-256 |
c97c18820028cf960b00569b6811f968b299db07f567d578aa233b6b1cd59a71
|
Provenance
The following attestation bundles were made for trelix_mcp-1.0.0.tar.gz:
Publisher:
release.yml on sairam0424/trelix
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trelix_mcp-1.0.0.tar.gz -
Subject digest:
07ef1a267af497d91d1a97972e845169c4ff4f55f9fe8df481cfba462352b992 - Sigstore transparency entry: 1982072573
- Sigstore integration time:
-
Permalink:
sairam0424/trelix@761ea0346bfaed90fba82629a742158767939299 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/sairam0424
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@761ea0346bfaed90fba82629a742158767939299 -
Trigger Event:
push
-
Statement type:
File details
Details for the file trelix_mcp-1.0.0-py3-none-any.whl.
File metadata
- Download URL: trelix_mcp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9e19b54d152a0e9593207d8350a8b5fcf370a073ab62740ae506d996859ef0f
|
|
| MD5 |
83503e62777244f2ced2be3e7706263e
|
|
| BLAKE2b-256 |
9206efcc32c42265d064c19fede7053b2158d52f4c4bb89b518474cf8f4d838d
|
Provenance
The following attestation bundles were made for trelix_mcp-1.0.0-py3-none-any.whl:
Publisher:
release.yml on sairam0424/trelix
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trelix_mcp-1.0.0-py3-none-any.whl -
Subject digest:
c9e19b54d152a0e9593207d8350a8b5fcf370a073ab62740ae506d996859ef0f - Sigstore transparency entry: 1982072691
- Sigstore integration time:
-
Permalink:
sairam0424/trelix@761ea0346bfaed90fba82629a742158767939299 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/sairam0424
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@761ea0346bfaed90fba82629a742158767939299 -
Trigger Event:
push
-
Statement type: