Convex MCP Server
Convex 1.19.5 introduces a beta Model Context Protocol (MCP) server, enabling AI agents to interact with Convex deployments. This server allows agents to:
- Introspect tables and functions: Agents can discover available data and operations.
- Call functions: Execute queries and mutations within the Convex environment.
- Read and write data: Access and modify data stored in Convex tables.
- Run one-off queries: Safely execute sandboxed JavaScript queries for ad-hoc data analysis.
Key features include:
- Deployment introspection: Agents can query available deployments and their associated metadata.
- Schema discovery: Access declared and inferred schemas for Convex tables.
- Sandboxed query execution: Run arbitrary queries without compromising database integrity.
- Environment variable management: Manipulate deployment environment variables.
This MCP server targets developers using AI agents to automate tasks, analyze data, and manage Convex deployments programmatically. It simplifies integration with tools like Cursor, Claude Desktop, and Windsurf.