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
Metadata
Release files for legion-mcp 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| legion_mcp-0.1.5.tar.gz | 314.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| legion_mcp-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 512.1 kB
Release files / legion_mcp-0.1.5.tar.gz
| Download URL | legion_mcp-0.1.5.tar.gz |
|---|---|
| Size | 314.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33a5eb0e6dc2989c18ea60bbc0199451afd4addc48b8677754e1b8ef14586f9b
|
|
BLAKE2b-256 checksum How to use checksums |
a436995f0934270a746ed5c5b28b65ac77cc744bed588b8b24f687699c4b39a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / legion_mcp-0.1.5-py3-none-any.whl
| Download URL | legion_mcp-0.1.5-py3-none-any.whl |
|---|---|
| Size | 197.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e1eee9293aa4fc1beb346d3128071f26fe7bb5b9a099b40641f6e1795b28041
|
|
BLAKE2b-256 checksum How to use checksums |
57a91bd2c0264d787d19f0a4de546a510051a7a60cf4907982470119de388051
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for legion-mcp 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.