Convex MCP server

Connect Convex to Claude, ChatGPT, Cursor, Claude Code, Codex, Gemini, GitHub Copilot and any other MCP client, for your whole team. Metorial adds security, governance, and tracing, and gives everyone one Magic MCP URL to connect.

What you can do with the Convex MCP server

Ask your agent in plain language. Each of these maps to a real tool on the server.

  • Use the run mutation tool in Convex
  • Use the generate upload url tool in Convex
  • Use the get document changes tool in Convex
  • Use the run query tool in Convex
  • Use the list documents tool in Convex
  • Use the run action tool in Convex

Supported Tools

run_mutation

Run Mutation

Execute a Convex mutation function over HTTP. Mutations are write operations that can read and modify data in the Convex database with ACID transaction guarantees. Specify the function path (e.g. `messages:send` or `users:create`) and optional arguments. Returns the mutation result.

generate_upload_url

Generate Upload URL

Generate a temporary upload URL for uploading a file to Convex file storage. The returned URL can be used to POST file content directly. After uploading, a storage ID is returned that can be referenced in documents. Requires a deployed mutation that returns ctx.storage.generateUploadUrl().

get_document_deltas

Get Document Changes

Retrieve incremental document changes (inserts, updates, deletes) from a Convex deployment using the Streaming Export API. Returns a cursor-based change feed of document-level modifications since a given cursor position. Useful for syncing external systems, building audit trails, or tracking data changes over time. Requires deployment administration permission and Streaming Export availability on your plan.

run_query

Run Query

Execute a Convex query function over HTTP. Queries are read-only functions that fetch data from the Convex database. Specify the function path (e.g. `messages:list` or `users:getById`) and optional arguments. Returns the query result as JSON.

list_documents

List Documents

List documents from a Convex table using the Streaming Export API snapshot endpoint. Retrieves a paginated snapshot of documents from a specific table or across all tables. Useful for browsing data, exporting records, or inspecting table contents. Requires deployment administration permission and Streaming Export availability on your plan.

run_action

Run Action

Execute a Convex action function over HTTP. Actions can call external APIs, use third-party libraries, and perform side effects that are not possible in queries or mutations. Specify the function path (e.g. `ai:generateEmbedding` or `email:send`) and optional arguments. Returns the action result.

manage_environment_variables

Manage Environment Variables

View or update environment variables for a Convex deployment. When no changes are provided, lists all current environment variables. When changes are provided, updates the specified environment variables; omit a change's value to delete that variable. Listing includes secret values. Requires deployment environment-variable permission.

get_deployment_info

Get Deployment Info

Identify the configured Convex deployment, including its project, team and deployment type when hosted in Convex Cloud.

download_file

Download File

Download a Convex storage file using a deployed query that returns ctx.storage.getUrl(storageId). The query controls access to the file.

Connect Convex to your AI client

Every client uses the same Magic MCP URL, and so does any other MCP client. Add it once and sign in with SSO.

  1. Enable Convex in Metorial. In your Metorial portal, enable the Convex MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
  2. Add a custom connector. Open Customize, then Connectors. Select Add, then Custom, then Web.
  3. Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>) and continue.
  4. Sign in. Select Add and sign in to load Convex tools.

Run Convex through the Metorial gateway

One governed layer for every app your agents reach, not a separate connector per tool.

  • Give Convex and every other app to your whole team through one MCP gateway, behind your SSO.
  • Scope which teams and agents can use Convex tools with role-based access control, and trace every call.
  • Prefer to run it yourself? Metorial is open source and self-hostable.

More integrations teams use with Convex

Google Sheets

Create, read, and update spreadsheets and their cell data. Read and write values to individual cells, ranges, or multiple ranges using A1 notation or named ranges. Apply cell formatting including text styles, backgrounds, borders, number formats, and conditional formatting. Manage sheets (tabs) within a spreadsheet—add, delete, copy, rename, and reorder them. Create and manage embedded charts, pivot tables, filter views, data validation rules, protected ranges, named ranges, and merged cells. Perform batch operations to apply multiple updates atomically.

GitHub

Manage repositories, issues, and pull requests. Create and configure branches, star repositories, review code, and merge changes. Automate CI/CD workflows with GitHub Actions, manage workflow runs, secrets, and artifacts. Track issues with labels, milestones, and assignees. Search across code, repositories, issues, and users. Manage organizations, teams, and memberships. Create and manage projects, gists, packages, deployments, and environments. Access security alerts including code scanning, secret scanning, and Dependabot alerts. Read and write file contents in repositories. Manage webhooks, notifications, and codespaces.

Salesforce

Manage CRM data including Accounts, Contacts, Leads, Opportunities, Cases, and custom objects. Create, read, update, and delete records. Query data using SOQL and search across objects using SOSL. Perform bulk data operations for large-scale imports, exports, and migrations. Execute composite requests to batch multiple operations in a single API call. Access analytics, reports, and dashboards. Manage files and attachments associated with records. Interact with Chatter feeds, posts, and groups for social collaboration. Manage org metadata including custom objects, fields, layouts, and workflows. Query data using GraphQL for precise data retrieval across related objects.

Sharepoint

Manage SharePoint sites, document libraries, lists, and files. Create, read, update, and delete lists and list items with custom columns. Resolve site users to numeric Person/Group LookupId values. Upload, download, move, copy, and version files in document libraries. Search across sites, files, folders, lists, and list items using Microsoft Search. Manage permissions at site, list, and item levels with granular access control. Define and manage content types and site columns. Retrieve site properties and search for sites across Microsoft 365.

Airtable

Create, read, update, and delete records in Airtable bases and tables. Manage base schemas including creating tables and fields. Filter records using formulas, sort by fields, and scope queries to specific views. Upsert records to find, create, or update in a single call. Upload attachments to records, read and write record comments, list accessible bases, and receive real-time base change events through webhooks.

Google Drive

Upload, download, create, copy, move, rename, trash, and permanently delete files and folders in Google Drive. Search for files using complex queries filtering by name, MIME type, owner, modification date, labels, and other metadata. Share files and folders with specific users, groups, or domains with role-based permissions (owner, writer, commenter, reader). Manage shared drives and their members. Export Google Workspace files (Docs, Sheets, Slides) to standard formats like PDF, DOCX, and XLSX. Track file revision history and restore earlier versions. Create, read, update, and delete threaded comments and replies on files. Read label definitions and search files by label. Browse the Drive apps installed for your account. Store app-specific data in a hidden per-user folder.

Technical notes for Convex

Invoke serverless queries, mutations, and actions on a reactive document-relational database. Read, insert, update, and delete documents across tables with ACID transactions. Upload and manage files in built-in storage. Schedule functions for future or recurring execution (cron jobs). Perform full-text search with BM25 relevance scoring and vector similarity search for AI/RAG use cases. Stream export document-level changes (inserts, updates, deletes) for incremental data sync to external systems. Stream import data from external sources into Convex tables. Manage projects, deployments, deploy keys, and environment variables via the Management API. Define custom HTTP endpoints for inbound webhooks and REST-style APIs.

Frequently asked questions

Common questions about connecting Convex to AI agents with Metorial.

  1. How many tools does the Convex MCP server have?
    The Convex MCP server exposes 9 tools, including Run Mutation, Generate Upload URL, Get Document Changes. Each one is governed and traced through Metorial.
  2. Convex exposes tools your agents call on demand; it does not publish event triggers yet. Everything still runs through one governed MCP URL.
  3. Any MCP client, including VS Code, Windsurf, Zed, OpenCode and Grok. Each one reaches the Convex MCP server through the same Metorial URL.
  4. Use role-based access control to decide which teams, users, and agents can use Convex and which of its tools they can call.
  5. Yes. Metorial is open source, so you can run the Convex MCP server yourself or use the hosted gateway.

Connect Convex to production AI agents

See how Metorial gives your team governed access to Convex, with tracing and security controls built in.