3D MCP Cursor Visualization
Convex MCP Logo - AI-Powered Development Tool for Cursor IDE

Convex MCP

Model Context Protocol Integration

Overview

Cursor, the AI code editor, makes it easy to write and maintain apps built with Convex. Let's walk through how to setup Cursor for the best possible results with Convex.

Convex Features

  • Access to Convex deployment for querying and optimization
  • Schema evaluation and improvement suggestions
  • Public endpoints inspection
  • Function execution capabilities
  • Automatic client-side type generation
  • Integration with Cursor's AI features

Convex Setup & Configuration

Requirements

  • Cursor version 0.46.8 or later
  • Convex CLI
  • Node.js

Installation Instructions

# Install Convex CLI and Start MCP Server
npx -y convex@latest mcp start

# Install Convex in Your Project
npm install convex
npx convex dev

Configuration

# Cursor Settings > MCP Configuration
1. Click "Add new MCP server"
2. Add a "convex" command server
3. Use command: npx -y convex@latest mcp start
4. Enable the server (should show green)

# Additional Setup
1. Add .cursor/rules directory with model-specific .mdc files
2. Add Convex docs in Cursor Settings > Features > Docs:
   - https://docs.convex.dev/
   - https://stack.convex.dev/ (optional)

Convex Available Tools

  • schema_evaluate
  • list_endpoints
  • execute_function

Convex Use Cases

  • Schema optimization and improvements
  • Query and mutation execution
  • Public endpoint inspection
  • Project structure analysis
  • Type-safe development
  • Database schema management

Frequently Asked Questions

Cursor, the AI code editor, makes it easy to write and maintain apps built with Convex. Let's walk through how to setup Cursor for the best possible results with Convex.
Cursor version 0.46.8 or later, Convex CLI, Node.jsView detailed requirements
Follow the installation instructions in the setup section above.View installation guide

Convex MCP provides the following tools:

  • schema_evaluate
  • list_endpoints
  • execute_function