Skip to main content
Glama

CodeAlive MCP

Official
by CodeAlive-AI

CodeAlive MCP: Deep Context for your project (especially for large codebases)

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.

What is CodeAlive?

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

🛠 Available Tools

Once connected, you'll have access to these powerful tools:

  1. get_data_sources - List your indexed repositories and workspaces
  2. search_code - Semantic code search across your codebase
  3. chat_completions - AI chat with full project context

🎯 Usage Examples

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 search_code
  • "Explain how the payment flow works in this codebase" → Uses chat_completions

Table of Contents

🚀 Quick Start (Remote)

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.

Step 1: Get Your API Key

  1. Sign up at https://app.codealive.ai/
  2. Navigate to API Keys (under Organization)
  3. Click "+ Create API Key"
  4. Copy your API key immediately - you won't see it again!

Step 2: Choose Your AI Client

Select your preferred AI client below for instant setup:

🤖 AI Client Integrations

Claude Code

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! 🎉

Cursor

  1. Open Cursor → Settings (Cmd+, or Ctrl+,)
  2. Navigate to "MCP" in the left panel
  3. Click "Add new MCP server"
  4. Paste this configuration:
{ "mcpServers": { "codealive": { "url": "https://mcp.codealive.ai/api/", "headers": { "Authorization": "Bearer YOUR_API_KEY_HERE" } } } }
  1. Save and restart Cursor

Continue

  1. Create/edit .continue/config.yaml in your project or ~/.continue/config.yaml
  2. Add this configuration:
mcpServers: - name: CodeAlive type: streamable-http url: https://mcp.codealive.ai/api/ requestOptions: headers: Authorization: "Bearer YOUR_API_KEY_HERE"
  1. Restart VS Code

Visual Studio Code with GitHub Copilot

  1. Open Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
  2. Run "MCP: Add Server"
  3. Choose "HTTP" server type
  4. Enter this configuration:
{ "servers": { "codealive": { "type": "http", "url": "https://mcp.codealive.ai/api/", "headers": { "Authorization": "Bearer YOUR_API_KEY_HERE" } } } }
  1. Restart VS Code

Claude Desktop

Note: Claude Desktop remote MCP requires OAuth authentication. Use Docker option below for Bearer token support.

Cline

  1. Open Cline extension in VS Code
  2. Click the MCP Servers icon to configure
  3. Add this configuration to your MCP settings:
{ "mcpServers": { "codealive": { "url": "https://mcp.codealive.ai/api/", "headers": { "Authorization": "Bearer YOUR_API_KEY_HERE" } } } }
  1. Save and restart VS Code

🐳 Alternative: Docker Setup

If you prefer Docker over the remote service, use our Docker image:

Claude Desktop with Docker

For local development or if you prefer Docker over the remote service:

  1. Edit your config file:
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. 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:main" ] } } }
  1. Restart Claude Desktop

Cursor with Docker

{ "mcpServers": { "codealive": { "command": "docker", "args": [ "run", "--rm", "-i", "-e", "CODEALIVE_API_KEY=YOUR_API_KEY_HERE", "ghcr.io/codealive-ai/codealive-mcp:main" ] } } }

Continue with Docker

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:main

VS Code with Docker

Create .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:main" ] } } }

Cline with Docker

  1. Open Cline extension in VS Code
  2. Click the MCP Servers icon to configure
  3. 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:main" ] } } }

🔧 Advanced: Local Development

For developers who want to customize or contribute to the MCP server.

Prerequisites

  • Python 3.11+
  • uv (recommended) or pip

Installation

# 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 .

Local Server Configuration

Once installed locally, configure your AI client to use the local server:

Claude Code (Local)
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_HERE
Other Clients (Local)

Replace 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" } }

Running HTTP Server Locally

# 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/health

Smithery Installation

Auto-install for Claude Desktop via Smithery:

npx -y @smithery/cli install @CodeAlive-AI/codealive-mcp --client claude

🐞 Troubleshooting

Quick Diagnostics

  1. Test the hosted service:
    curl https://mcp.codealive.ai/health
  2. Check your API key:
    curl -H "Authorization: Bearer YOUR_API_KEY" https://app.codealive.ai/api/v1/data_sources
  3. Enable debug logging: Add --debug to local server args

Common Issues

  • "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

Getting Help


📄 License

MIT License - see LICENSE file for details.


Ready to supercharge your AI assistant with deep code understanding?
Get started now →

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

A Model Context Protocol server that enhances AI agents by providing deep semantic understanding of codebases, enabling more intelligent interactions through advanced code search and contextual awareness.

  1. What is CodeAlive?
    1. Table of Contents
      1. Available Tools
        1. Getting Started
          1. Prerequisites
          2. Getting an API Key
          3. Installation
        2. Configuration
          1. Environment Variables
          2. Command Line Options
        3. Integrating with AI Clients
          1. Continue
          2. Claude Desktop
          3. Visual Studio Code with GitHub Copilot
          4. Cursor
        4. Using Python Directly
          1. Claude Desktop with Python
          2. Cursor with Python
        5. Troubleshooting
          1. License

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              This server implements the Model Context Protocol to facilitate meaningful interaction and understanding development between humans and AI through structured tools and progressive interaction patterns.
              Last updated -
              13
              52
              MIT License
            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol server that enables AI agents to retrieve and understand entire codebases at once, providing tools to analyze local workspaces or remote GitHub repositories.
              Last updated -
              3
              50
              MIT License
              • Linux
              • Apple
            • -
              security
              F
              license
              -
              quality
              A comprehensive Model Context Protocol server implementation that enables AI assistants to interact with file systems, databases, GitHub repositories, web resources, and system tools while maintaining security and control.
              Last updated -
              1
              1
            • A
              security
              F
              license
              A
              quality
              A Model Context Protocol server that enables AI agents to generate, fetch, and manage UI components through natural language interactions.
              Last updated -
              3
              529
              5

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/CodeAlive-AI/codealive-mcp'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server