Skip to main content
The Model Context Protocol (MCP) gives an AI assistant tools to work with your CamposCloud account. Your client runs the @camposcloud/mcp server locally over standard input and output (stdio). The server calls the CamposCloud API with your token. Use Node.js 22.12 or later with npm. This guide covers @camposcloud/mcp version 0.1.1.

Create a token

  1. In the CamposCloud dashboard, open Perfil → Desenvolvedor.
  2. Create a token just for the assistant, give it a recognizable name, and set an expiration date. Your account can have several tokens, each with its own expiration.
  3. Copy the token, which starts with cc_pat_, and use it as CAMPOS_TOKEN in your client’s configuration. The token uses your account’s permissions.
Keep the token out of chat and version control. If it leaks, revoke it in Perfil → Desenvolvedor and configure a new token.

Connect your assistant

Replace SEU_TOKEN with your token wherever it appears. The server uses the public CamposCloud API by default. To connect to a local API, set CAMPOS_API_URL to its base URL without the /v1 suffix.

Claude Code

Put the name camposcloud before -e so the option does not consume it as another environment value. The default scope applies to the current project. Add -s user after camposcloud to use the server in any project. On Windows, use -- cmd /c npx -y @camposcloud/mcp at the end of the command. If you use Git Bash, prefix the command with MSYS_NO_PATHCONV=1 to keep Git Bash from rewriting /c.

Claude Desktop, Cursor, and Windsurf

Open the configuration file for your client: Add camposcloud under mcpServers, keeping any existing servers, and restart the client.

VS Code

Run MCP: Open User Configuration from the Command Palette and add the following configuration. When the server starts, VS Code prompts for the token in a password field and keeps the value out of the configuration file.

Windows JSON configuration

If your client cannot find npx on Windows, set command to cmd and start args with "/c", "npx":

What to ask

Start with “Which CamposCloud account is connected?” Then try a request like one of these:
  • “Show the last 100 console lines for store-api that contain ERROR.”
  • “Restart store-api in the Shop team.”
  • “Create a Node.js app called store-api from /home/dev/projects/store-api with 512 MB of memory and the start command npm start.”
  • “Create a PostgreSQL database called store-db with 512 MB of memory, user store, and database name store. Ask for the password before creating it.”
  • “Set LOG_LEVEL to info in store-api and list the variable names.”

Confirm irreversible actions

Six actions require confirmation: delete an application and its files, delete selected files or folders, delete a database and its data, change a database password and invalidate the old one, remove a team member, and delete a team. If your client shows a form, review the action and type the exact name shown. For file deletion, type the application name. For member removal, type the member’s name. If your client does not support the form, the assistant must show you the action and ask for approval. After you approve, it repeats the request with a single-use confirmation code. The code expires after two minutes and only applies to the original action and target.

Limits and data access

The database API provides connection details such as host, port, and username. The password stays out of API responses. Use the password you set when you created the database or last changed its credentials.

Tools by group

Tool names start with campos_. You can ask for the task in plain language.