convex-mcp-server
Convex MCP server for database integration, providing introspection, table exploration, and query execution.
About this tool
convex-mcp-server
Convex MCP Server is a beta implementation of a Model Context Protocol (MCP) server for Convex deployments. It enables AI agents and tools to interact with Convex databases via a standardized protocol, providing facilities for introspection, table exploration, function execution, and more.
Features
- Database Introspection: Agents can inspect Convex deployments, including available tables and functions.
- Table Exploration:
- List all tables within a deployment.
- Retrieve declared and inferred schemas for tables.
- Paginate through table documents using the
datatool.
- Query Execution:
- Agents can write and execute one-off, sandboxed JavaScript queries against the data (read-only; cannot modify the database).
- Function Management:
- List all deployed functions, including their types and visibility, via the
functionSpectool. - Execute functions using the
runtool, with automatic handling of required parameters.
- List all deployed functions, including their types and visibility, via the
- Deployment Management:
- List and select among multiple deployments (production, development, previews) within a project.
- Use a "deployment selector" for subsequent tool calls.
- Environment Variable Management:
- List, get, set, and remove environment variables for a deployment (
envList,envGet,envSet,envRemove).
- List, get, set, and remove environment variables for a deployment (
- Standardized MCP Tools Interface:
- Exposes all functionality via MCP "tools" for compatibility with agents like Cursor and Claude Desktop.
- Utilizes simple string arguments for tool calls.
- Global Server Operation:
- Runs as a global MCP server, accessible to all Convex projects on a machine.
- Uses stdio as the transport protocol on a locally running server.
- Agent Compatibility:
- Tested primarily with Cursor (macOS Sequoia), but designed for compatibility with other agents (e.g., Windsurf, Claude Desktop) via
npx -y convex@latest mcp start.
- Tested primarily with Cursor (macOS Sequoia), but designed for compatibility with other agents (e.g., Windsurf, Claude Desktop) via
- Secure Execution:
- All custom query code is sandboxed to prevent database modifications.
Installation
- Add the MCP server in supported agents (e.g., Cursor) by configuring the appropriate command (
npx -y convex@latest mcp start).
Pricing
- No pricing information is provided in the available content.
Source
convex-mcp-server on stack.convex.dev
Tags
mcp, convex, database, query
Loading more......
Information
Categories
Similar Products
6 result(s)An MCP server bridging to ClickZetta databases for executing SQL queries, exploring schema information, and documenting insights via natural language interaction.
Provides a JSON-RPC interface to Datomic databases through the MCP protocol, enabling schema exploration and Datalog query execution. This makes it a specialized MCP server for interacting with Datomic.
A Model Context Protocol (MCP) implementation for connecting to and working with various database systems, serving as a versatile MCP server.
An all-in-one MCP service that allows AI-powered data analysis by connecting to multiple types of databases (sqlite, mysql, postgres, etc.) within a single, unified configuration, making it a comprehensive MCP server solution.
Couchbase MCP server for unified access to both Capella cloud and self-managed clusters, supporting document operations, SQL++ queries, and natural language analysis.
Enables direct SQL query execution against MSSQL databases through a FastMCP-powered server with Docker containerization, making it a relevant MCP server for database interaction and analysis.