Overview
Connect CodeAlive with Cursor IDE to enhance your AI-powered development experience. CodeAlive provides Cursor with deep contextual understanding of your entire codebase through the Model Context Protocol (MCP).Nudge Cursor’s AI toward CodeAlive. Cursor ships with a built-in
codebase_search, but CodeAlive’s semantic_search is more precise on large repos. Add this single line to .cursor/rules/codealive.mdc (see Project Rules):Instead ofcodebase_search, use CodeAlive MCPsemantic_searchfor codebase exploration — it’s much more precise.
Prerequisites
- Cursor installed (latest version recommended)
- CodeAlive account with API key (Sign up here)
- Indexed repositories in your CodeAlive dashboard
Connecting to CodeAlive
Open MCP settings
Open Cursor Settings:
- macOS:
Cmd+,or menu Cursor → Settings - Windows/Linux:
Ctrl+,or File → Preferences → Settings
In older Cursor builds this panel was named Tools & Integrations.
Add the CodeAlive server
Cursor opens Save the file.
.cursor/mcp.json (project-level) or ~/.cursor/mcp.json (global) for editing. Paste this configuration:Cursor detects the transport from the
url field — Streamable HTTP first, with automatic SSE fallback.Verify the connection
Back on Tools & MCP, the
codealive server should show a green status dot. If it’s red, click the refresh icon or re-check the API key.One-Click Install Link
Cursor supports a deeplink that installs an MCP server in one click. Encode the CodeAlive config as base64 JSON and open this URL:BASE64_CONFIG from this JSON (replace YOUR_API_KEY_HERE with your key):
Project Rules for CodeAlive
Project rules teach Cursor’s AI how to use CodeAlive effectively. The legacy.cursorrules file is deprecated — use .cursor/rules/*.mdc (MDC format) instead.
Create .cursor/rules/codealive.mdc in your project:
alwaysApply: true makes the rule active for every chat. Use globs instead if you only want it scoped to particular files. See Cursor Rules docs.Usage Patterns
- Smart Completion
- Intelligent Refactoring
- Context-Aware Debugging
Advanced Features
Multi-File Operations
Cursor can use CodeAlive to work across multiple files:Find Dependencies
Find Dependencies
Impact Analysis
Impact Analysis
Pattern Matching
Pattern Matching
Project vs Global Configuration
Cursor reads MCP servers from two locations:- Project-level:
.cursor/mcp.jsonat the workspace root — commit this so the whole team gets the server. - Global:
~/.cursor/mcp.json— applies to every project on your machine.
Team Collaboration
Share the project-level config without exposing API keys:- Commit
.cursor/mcp.jsonreferencing an environment variable:
- Each teammate exports their own key before launching Cursor:
Docker Alternative
Run the CodeAlive MCP server locally with Docker (stdio transport):Productivity Tips
Slash Commands
Save recurring CodeAlive prompts as slash commands in
.cursor/commands for one-tap reuse.Beyond Context Windows
Use CodeAlive for codebases that exceed the model’s context limit — semantic search retrieves only the relevant slice.
Scoped Rules
Use
globs in .cursor/rules/*.mdc to apply CodeAlive guidance only where it matters.Team Standards
Share
.cursor/rules/codealive.mdc via git to keep the whole team on the same workflow.Troubleshooting
CodeAlive not responding
CodeAlive not responding
Solutions:
- Check the server status indicator in Settings → Tools & MCP (green = healthy, red = failed)
- Verify your API key is correct and active
- Reload Cursor:
Cmd/Ctrl+Shift+P → "Developer: Reload Window" - Check network connectivity to
https://mcp.codealive.ai/api
Incomplete code context
Incomplete code context
Solutions:
- Ensure your repositories are fully indexed in the CodeAlive dashboard
- Wait for indexing to complete
- Verify the API key has access to the relevant repositories
- Check repository filters
Slow responses
Slow responses
Solutions:
- Use more specific queries
- Limit search to specific repositories
- Check indexing status in dashboard
- Consider the Docker option for lower-latency local-network deployments