Nvidia Brev MCP server

Bridges Nvidia Brev, enabling natural language control of workspaces, deployments, and cloud resources.
Back to servers
Provider
Brev
Release date
Jan 08, 2025
Language
Python
Stats
3 stars

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.

Installation

Prerequisites

Before installing the Brev MCP server, you'll need to:

  1. Install and configure the Brev CLI by following the Brev documentation
  2. Login to the Brev CLI with your credentials
  3. Set your desired Brev organization with brev set <org-name>

Install the MCP Server

Clone the repository to your local machine:

git clone [email protected]:brevdev/brev-mcp.git

Install UV

The server requires the UV package manager. Follow the UV installation guide to install it on your system.

Configuration

Claude Desktop Integration

To configure Claude Desktop to use the Brev MCP server:

  1. Locate your Claude Desktop configuration file:

    • MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%/Claude/claude_desktop_config.json
  2. 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.

Usage

Authentication Management

The MCP server uses the Brev CLI's API access token for authentication. Keep in mind:

  • The CLI access token expires every hour
  • If you encounter 403 errors, run brev ls to refresh the access token

Switching Organizations

To switch between different Brev organizations:

brev set <org-name>

After switching organizations, the MCP server will use the newly selected organization for all operations.

Troubleshooting

Common Issues

If you encounter authentication errors (HTTP 403), run:

brev ls

This will refresh your access token and should resolve most authentication issues.

Advanced Debugging

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.

How to add this MCP server to Cursor

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.

Adding an MCP server to Cursor globally

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"
            ]
        }
    }
}

Adding an MCP server to a project

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.

How to use the MCP server

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.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later