Metoro Kubernetes Observability MCP server

MCP server enabling AI assistants to query and analyze Kubernetes telemetry data collected via eBPF instrumentation for observability and optimization.
Back to servers
Setup instructions
Provider
Metoro
Release date
Dec 08, 2024
Language
Go
Stats
43 stars

The Metoro MCP Server integrates with the Claude Desktop App to provide AI-powered insights about your Kubernetes clusters. This server connects your Claude AI assistant to Metoro's observability platform, allowing you to query and analyze your Kubernetes environment through natural language conversations.

Installation Requirements

Before installing the Metoro MCP Server, ensure you have:

  • Claude Desktop App installed
  • Golang installed on your system
    • macOS: brew install go
    • Ubuntu: sudo apt-get install golang

Setting Up the Server

Step 1: Clone and Build

git clone https://github.com/metoro-io/metoro-mcp-server.git
cd metoro-mcp-server
go build -o metoro-mcp-server

Step 2: Configure Claude Desktop

You'll need to create a configuration file to connect Claude with the Metoro MCP Server.

Create or edit the Claude configuration file at:

~/Library/Application Support/Claude/claude_desktop_config.json

Configuration Options

For Existing Metoro Account Users

If you already have a Metoro account, use your auth token from the Settings page → User Settings:

{
  "mcpServers": {
    "metoro-mcp-server": {
      "command": "/path/to/your/metoro-mcp-server",
      "args": [],
      "env": {
          "METORO_AUTH_TOKEN": "your-auth-token-here",
          "METORO_API_URL": "https://us-east.metoro.io"
       }
    }
  }
}

For New Users Without a Metoro Account

You can use the public demo cluster with this configuration:

{
  "mcpServers": {
    "metoro-mcp-server": {
      "command": "/path/to/your/metoro-mcp-server",
      "args": [],
      "env": {
          "METORO_AUTH_TOKEN": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b21lcklkIjoiOThlZDU1M2QtYzY4ZC00MDRhLWFhZjItNDM2ODllNWJiMGUzIiwiZW1haWwiOiJ0ZXN0QGNocmlzYmF0dGFyYmVlLmNvbSIsImV4cCI6MTgyMTI0NzIzN30.7G6alDpcZh_OThYj293Jce5rjeOBqAhOlANR_Fl5auw",
          "METORO_API_URL": "https://demo.us-east.metoro.io"
       }
    }
  }
}

Using the MCP Server

After configuration:

  1. Save the claude_desktop_config.json file
  2. Restart the Claude Desktop App
  3. You should now see "Metoro MCP Server" in the dropdown list of available MCP Servers

Example Queries

You can now ask Claude questions about your Kubernetes cluster such as:

  • "Show me the status of all pods in my cluster"
  • "What services are running in the default namespace?"
  • "Are there any resource constraints I should be concerned about?"
  • "Can you identify any performance bottlenecks in my applications?"
  • "Show me the logs for pods having connection issues"

The Claude AI will use Metoro's APIs to retrieve and analyze data from your Kubernetes environment to provide detailed answers to your questions.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "metoro-mcp-server" '{"command":"<your path to Metoro MCP server go executable>/metoro-mcp-server","args":[],"env":{"METORO_AUTH_TOKEN":"<your auth token>","METORO_API_URL":"https://us-east.metoro.io"}}'

See the official Claude Code MCP documentation for more details.

For 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 > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "metoro-mcp-server": {
            "command": "<your path to Metoro MCP server go executable>/metoro-mcp-server",
            "args": [],
            "env": {
                "METORO_AUTH_TOKEN": "<your auth token>",
                "METORO_API_URL": "https://us-east.metoro.io"
            }
        }
    }
}

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 explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "metoro-mcp-server": {
            "command": "<your path to Metoro MCP server go executable>/metoro-mcp-server",
            "args": [],
            "env": {
                "METORO_AUTH_TOKEN": "<your auth token>",
                "METORO_API_URL": "https://us-east.metoro.io"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

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