This MCP server implementation for Brev allows you to integrate Brev with applications that support the Model Context Protocol, such as Claude Desktop. It enables execution and management of AI tasks through Brev's infrastructure directly from your MCP-compatible clients.
Before installing the Brev MCP server, you'll need to:
brev set <org-name>
Clone the repository to your local machine:
git clone [email protected]:brevdev/brev-mcp.git
The server requires the UV package manager. Follow the UV installation guide to install it on your system.
To configure Claude Desktop to use the Brev MCP server:
Locate your Claude Desktop configuration file:
~/Library/Application\ Support/Claude/claude_desktop_config.json
%APPDATA%/Claude/claude_desktop_config.json
Add the Brev MCP server configuration to your claude_desktop_config.json
:
"mcpServers": {
"brev_mcp": {
"command": "uv",
"args": [
"--directory",
"<path-to-repo>",
"run",
"brev-mcp"
]
}
}
Replace <path-to-repo>
with the actual path where you cloned the repository.
The MCP server uses the Brev CLI's API access token for authentication. Keep in mind:
brev ls
to refresh the access tokenTo switch between different Brev organizations:
brev set <org-name>
After switching organizations, the MCP server will use the newly selected organization for all operations.
If you encounter authentication errors (HTTP 403), run:
brev ls
This will refresh your access token and should resolve most authentication issues.
For deeper insight into the MCP server's operation, you can use the MCP Inspector:
npx @modelcontextprotocol/inspector uv --directory /path/to/brev-mcp run brev-mcp
After launching, the Inspector will provide a URL you can open in your browser to view detailed logs and interaction data.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.