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
2 result(s)An MCP server for searching job listings, with filters for date, keywords, remote work, and more, adhering to the MCP server protocol.
An MCP server enabling high-speed trading of Solana blockchain tokens by monitoring Raydium AMM pools and Serum markets with sub-second execution, demonstrating advanced MCP server capabilities for real-time blockchain applications.