Noah
Noah2mo ago

Convex MCP read-only

We'd like to give Devin AI access to the Convex MCP. Is there a way to issue a read-only token for the MCP to use?
2 Replies
Convex Bot
Convex Bot2mo ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
ballingt
ballingt2mo ago
@Noah note you can run the CLI MCP server wiht tools disabled:
tomb@macbookpro tutorial % npx convex mcp start --help
Usage: convex mcp start [options]

Start the Model Context Protocol server for Convex that can be used with AI tools.

Options:
--project-dir <project-dir> Run the MCP server for a single project. By default, the MCP server can run for multiple projects, and each tool call specifies its project directory.
--disable-tools <tool-names> Comma separated list of tool names to disable (options: data, envGet, envList, envRemove, envSet, functionSpec, run, runOneoffQuery, status, tables)
--disable-production-deployments Disable the MCP server from accessing production deployments.
--env-file <envFile> Path to a custom file of environment variables, for choosing the deployment, e.g. CONVEX_DEPLOYMENT or CONVEX_SELF_HOSTED_URL. Same format as .env.local or .env files, and overrides them.
--prod Run the MCP server on this project's production deployment.
--preview-name <previewName> Run the MCP server on the preview deployment with the given name.
--deployment-name <deploymentName> Run the MCP server on the specified deployment.
-h, --help display help for command
tomb@macbookpro tutorial % npx convex mcp start --help
Usage: convex mcp start [options]

Start the Model Context Protocol server for Convex that can be used with AI tools.

Options:
--project-dir <project-dir> Run the MCP server for a single project. By default, the MCP server can run for multiple projects, and each tool call specifies its project directory.
--disable-tools <tool-names> Comma separated list of tool names to disable (options: data, envGet, envList, envRemove, envSet, functionSpec, run, runOneoffQuery, status, tables)
--disable-production-deployments Disable the MCP server from accessing production deployments.
--env-file <envFile> Path to a custom file of environment variables, for choosing the deployment, e.g. CONVEX_DEPLOYMENT or CONVEX_SELF_HOSTED_URL. Same format as .env.local or .env files, and overrides them.
--prod Run the MCP server on this project's production deployment.
--preview-name <previewName> Run the MCP server on the preview deployment with the given name.
--deployment-name <deploymentName> Run the MCP server on the specified deployment.
-h, --help display help for command

Did you find this page helpful?