LEGION Knowledge & Code Intelligence MCP Server for Claude
Project description
LEGION MCP
Knowledge & Code Intelligence MCP Server for Claude.
Installation
pip install git+https://github.com/wearethelegion/legion-mcp.git
Configuration
Environment Variables
# Required: gRPC server connection
GRPC_SERVER_HOST=localhost
GRPC_SERVER_PORT=50051
# Required: Authentication
MCP_USER_EMAIL=your@email.com
MCP_USER_PASSWORD=your_password
Claude Desktop Configuration
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"legion": {
"command": "legion-mcp",
"env": {
"GRPC_SERVER_HOST": "localhost",
"GRPC_SERVER_PORT": "50051",
"MCP_USER_EMAIL": "your@email.com",
"MCP_USER_PASSWORD": "your_password"
}
}
}
}
Available Tools
Knowledge Management
queryKnowledge- Search docs with hybrid retrieval (vector + graph + reranking)fastQuery- Fast vector-only searchcreateKnowledge- Store documentation/notessearchByTags- Filter by metadata fields
Code Intelligence
findSimilarCode- Search code by natural language or snippetcreateCode- Index source code filesanalyzeImpact- Analyze blast radius of code changestraceExecutionFlow- Trace function call chains
Expertise & Lessons
queryExpertise- Search guides/tutorialscreateExpertise- Store structured knowledgequeryLessons- Search past resolved issuesrecordLesson- Document resolved bugs
Utility
getProjects- List available projectsexploreGraph- Run custom Cypher queries
Requirements
- Python 3.10+
- Running LEGION gRPC server
- Valid LEGION user credentials
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
legion_mcp-0.1.5.tar.gz
(314.5 kB
view details)
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
legion_mcp-0.1.5-py3-none-any.whl
(197.6 kB
view details)
File details
Details for the file legion_mcp-0.1.5.tar.gz.
File metadata
- Download URL: legion_mcp-0.1.5.tar.gz
- Upload date:
- Size: 314.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33a5eb0e6dc2989c18ea60bbc0199451afd4addc48b8677754e1b8ef14586f9b
|
|
| MD5 |
86c79555b076a8424d751ad34051ad06
|
|
| BLAKE2b-256 |
a436995f0934270a746ed5c5b28b65ac77cc744bed588b8b24f687699c4b39a5
|
File details
Details for the file legion_mcp-0.1.5-py3-none-any.whl.
File metadata
- Download URL: legion_mcp-0.1.5-py3-none-any.whl
- Upload date:
- Size: 197.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e1eee9293aa4fc1beb346d3128071f26fe7bb5b9a099b40641f6e1795b28041
|
|
| MD5 |
e75a0ba65ddbbf99a4f75ede1eeb88b4
|
|
| BLAKE2b-256 |
57a91bd2c0264d787d19f0a4de546a510051a7a60cf4907982470119de388051
|