Connect your AI assistant to CodeAlive's powerful code understanding platform in seconds!
This MCP (Model Context Protocol) server enables AI clients like Claude Code, Cursor, Claude Desktop, Continue, VS Code (GitHub Copilot), and Cline to access CodeAlive's advanced semantic code search and codebase interaction features.
CodeAlive analyzes your entire codebase to understand its structure, patterns, and logic. It creates a detailed internal map of your repositories, enabling AI assistants to:
- Find relevant code faster with semantic search
- Understand the bigger picture beyond isolated files
- Provide better answers with full project context
- Reduce costs and time by eliminating guesswork
Once connected, you'll have access to these powerful tools:
get_data_sources- List your indexed repositories and workspacescodebase_search- Semantic code search across your indexed codebase (main/master branch)codebase_consultant- AI consultant with full project expertise
After setup, try these commands with your AI assistant:
- "Show me all available repositories" β Uses
get_data_sources - "Find authentication code in the user service" β Uses
codebase_search - "Explain how the payment flow works in this codebase" β Uses
codebase_consultant
- Quick Start (Remote)
- AI Client Integrations
- Alternative: Docker Setup
- Advanced: Local Development
- Available Tools
- Usage Examples
- Troubleshooting
- License
The fastest way to get started - no installation required! Our remote MCP server at https://mcp.codealive.ai/api provides instant access to CodeAlive's capabilities.
- Sign up at https://app.codealive.ai/
- Navigate to API Keys (under Organization)
- Click "+ Create API Key"
- Copy your API key immediately - you won't see it again!
Select your preferred AI client below for instant setup:
One command setup:
claude mcp add --transport http codealive https://mcp.codealive.ai/api --header "Authorization: Bearer YOUR_API_KEY_HERE"Replace YOUR_API_KEY_HERE with your actual API key. That's it! π
- Open Cursor β Settings (
Cmd+,orCtrl+,) - Navigate to "MCP" in the left panel
- Click "Add new MCP server"
- Paste this configuration:
{ "mcpServers": { "codealive": { "url": "https://mcp.codealive.ai/api", "headers": { "Authorization": "Bearer YOUR_API_KEY_HERE" } } } }- Save and restart Cursor
- Create/edit
.continue/config.yamlin your project or~/.continue/config.yaml - Add this configuration:
mcpServers: - name: CodeAlive type: streamable-http url: https://mcp.codealive.ai/api requestOptions: headers: Authorization: "Bearer YOUR_API_KEY_HERE"- Restart VS Code
- Open Command Palette (
Ctrl+Shift+PorCmd+Shift+P) - Run "MCP: Add Server"
- Choose "HTTP" server type
- Enter this configuration:
{ "servers": { "codealive": { "type": "http", "url": "https://mcp.codealive.ai/api", "headers": { "Authorization": "Bearer YOUR_API_KEY_HERE" } } } }- Restart VS Code
Note: Claude Desktop remote MCP requires OAuth authentication. Use Docker option below for Bearer token support.
- Open Cline extension in VS Code
- Click the MCP Servers icon to configure
- Add this configuration to your MCP settings:
{ "mcpServers": { "codealive": { "url": "https://mcp.codealive.ai/api", "headers": { "Authorization": "Bearer YOUR_API_KEY_HERE" } } } }- Save and restart VS Code
If you prefer Docker over the remote service, use our Docker image:
For local development or if you prefer Docker over the remote service:
-
Edit your config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
-
Add this configuration:
{ "mcpServers": { "codealive": { "command": "docker", "args": [ "run", "--rm", "-i", "-e", "CODEALIVE_API_KEY=YOUR_API_KEY_HERE", "ghcr.io/codealive-ai/codealive-mcp:v0.2.0" ] } } }- Restart Claude Desktop
{ "mcpServers": { "codealive": { "command": "docker", "args": [ "run", "--rm", "-i", "-e", "CODEALIVE_API_KEY=YOUR_API_KEY_HERE", "ghcr.io/codealive-ai/codealive-mcp:v0.2.0" ] } } }mcpServers: - name: CodeAlive type: stdio command: docker args: - run - --rm - -i - -e - CODEALIVE_API_KEY=YOUR_API_KEY_HERE - ghcr.io/codealive-ai/codealive-mcp:v0.2.0Create .vscode/mcp.json in your workspace:
{ "servers": { "codealive": { "command": "docker", "args": [ "run", "--rm", "-i", "-e", "CODEALIVE_API_KEY=YOUR_API_KEY_HERE", "ghcr.io/codealive-ai/codealive-mcp:v0.2.0" ] } } }- Open Cline extension in VS Code
- Click the MCP Servers icon to configure
- Add this Docker configuration:
{ "mcpServers": { "codealive": { "command": "docker", "args": [ "run", "--rm", "-i", "-e", "CODEALIVE_API_KEY=YOUR_API_KEY_HERE", "ghcr.io/codealive-ai/codealive-mcp:v0.2.0" ] } } }For developers who want to customize or contribute to the MCP server.
- Python 3.11+
- uv (recommended) or pip
# Clone the repository git clone https://github.com/CodeAlive-AI/codealive-mcp.git cd codealive-mcp # Setup with uv (recommended) uv venv source .venv/bin/activate # Windows: .venv\Scripts\activate uv pip install -e . # Or setup with pip python -m venv .venv source .venv/bin/activate # Windows: .venv\Scripts\activate pip install -e .Once installed locally, configure your AI client to use the local server:
claude mcp add codealive-local /path/to/codealive-mcp/.venv/bin/python /path/to/codealive-mcp/src/codealive_mcp_server.py --env CODEALIVE_API_KEY=YOUR_API_KEY_HEREReplace the Docker command and args with:
{ "command": "/path/to/codealive-mcp/.venv/bin/python", "args": ["/path/to/codealive-mcp/src/codealive_mcp_server.py"], "env": { "CODEALIVE_API_KEY": "YOUR_API_KEY_HERE" } }# Start local HTTP server export CODEALIVE_API_KEY="your_api_key_here" python src/codealive_mcp_server.py --transport http --host localhost --port 8000 # Test health endpoint curl http://localhost:8000/healthAuto-install for Claude Desktop via Smithery:
npx -y @smithery/cli install @CodeAlive-AI/codealive-mcp --client claude-
Test the hosted service:
curl https://mcp.codealive.ai/health
-
Check your API key:
curl -H "Authorization: Bearer YOUR_API_KEY" https://app.codealive.ai/api/v1/data_sources -
Enable debug logging: Add
--debugto local server args
- "Connection refused" β Check internet connection
- "401 Unauthorized" β Verify your API key
- "No repositories found" β Check API key permissions in CodeAlive dashboard
- Client-specific logs β See your AI client's documentation for MCP logs
- π§ Email: support@codealive.ai
- π Issues: GitHub Issues
MIT License - see LICENSE file for details.
Ready to supercharge your AI assistant with deep code understanding?
Get started now β