[Home](/index.md) › [MCP servers](/mcp.md) › Middleware MCP Server

# Middleware MCP Server

MCP server

- 22 callable tools
- 5 capabilities

[Installation guide](https://docs.middleware.io/features/mcp/setup.md)

## Overview

Middleware's hosted MCP server connects AI assistants and IDEs to Middleware observability data, including logs, metrics, traces, errors, RUM sessions and dashboards.

### Capabilities

- Query logs, metrics and traces using natural language
- Investigate application errors and incidents
- Analyze log patterns and retrieve sample logs
- Monitor RUM applications, sessions and frontend errors
- Create, update and manage dashboards and widgets

## Works with

The products your agent can work with through this server.

- [Middleware](/tools/middleware.md): Full-stack observability

## Tools

The callable functions your agent uses to work with this server.

### `list_dashboards`

Read List dashboards and reports, with filtering and pagination.

### `get_dashboard`

Read Get a single dashboard by its key, including its layout and widgets.

### `create_dashboard`

Write Create a new dashboard.

### `update_dashboard`

Write Update an existing dashboard's properties.

### `delete_dashboard`

Write Delete a dashboard.

### `clone_dashboard`

Write Duplicate an existing dashboard into a new one.

### `set_dashboard_favorite`

Write Mark a dashboard as a favorite, or remove it from favorites.

### `list_widgets`

Read List the widgets on a report or display scope.

### `get_widget_data`

Read Fetch the data for a single widget.

### `create_widget`

Write Add a new widget.

### `update_widget`

Write Update an existing widget's configuration.

### `delete_widget`

Write Remove a widget.

### `update_widget_layouts`

Write Update the position and size of widgets on a dashboard.

### `get_resources`

Read List the resource types available to query, such as hosts, services, containers, or pods.

### `get_metrics`

Read List the available metrics, along with the filters and group-by tags each one supports.

### `query`

Read Run a query against any telemetry type over a time range.

### `list_errors`

Read List errors and incidents with filtering and pagination.

### `get_error_details`

Read Get detailed information about a specific error or incident, looked up by its fingerprint.

### `list_rum_applications`

Read List your RUM applications with session counts, error rate, and p75 load time, along with deep links.

### `list_rum_sessions`

Read List the sessions for a single RUM application, with session-replay deep links.

### `get_rum_session`

Read Get one RUM session in full: metadata, events, errors, network activity, and a deep link.

### `list_rum_errors`

Read List recent frontend errors with page and user-action context, and deep links to the sessions.

## Installation

Follow the installation guide for supported clients, authentication and required permissions.

### Add Middleware MCP Server to Claude Code

Run this in your terminal:

```sh
claude mcp add --transport http middleware https://mcp.middleware.io/mcp
```

If the server asks you to sign in, run `/mcp` in Claude Code and follow the browser prompt.

### Add Middleware MCP Server to Cursor

Add it with the Add to Cursor button below, or add it to `.cursor/mcp.json` in your project (`~/.cursor/mcp.json` for every project):

[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=middleware&config=eyJ1cmwiOiJodHRwczovL21jcC5taWRkbGV3YXJlLmlvL21jcCJ9)

```json
{
  "mcpServers": {
    "middleware": {
      "url": "https://mcp.middleware.io/mcp"
    }
  }
}
```

### Add Middleware MCP Server to VS Code

Add it to `.vscode/mcp.json` in your workspace. VS Code uses `servers` rather than `mcpServers`. Or run MCP: Add Server from the Command Palette and choose HTTP.

```json
{
  "servers": {
    "middleware": {
      "type": "http",
      "url": "https://mcp.middleware.io/mcp"
    }
  }
}
```

### Add Middleware MCP Server to Codex

Run this in your terminal:

```sh
codex mcp add middleware --url https://mcp.middleware.io/mcp
```

Or add it to `~/.codex/config.toml`:

```toml
[mcp_servers.middleware]
url = "https://mcp.middleware.io/mcp"
```

If the server uses OAuth, sign in with `codex mcp login middleware`.

### Add Middleware MCP Server to Claude

Add it as a custom connector with this URL:

```
https://mcp.middleware.io/mcp
```

1. Open Customize, then Connectors.
2. Click + Add, then Add custom connector.
3. Name it, paste the URL and click Continue.
4. Choose how to sign in, then click Add.

On Team and Enterprise plans, an Owner adds it in Organization settings first, then members connect it.

### Add Middleware MCP Server to other clients

For any other client that connects to remote MCP servers over HTTP, use this URL:

```
https://mcp.middleware.io/mcp
```

[Read the installation guide](https://docs.middleware.io/features/mcp/setup.md)

## Sources

Documentation and source code reviewed on 17 November 2026.

- [docs.middleware.io/features/mcp/setup.md](https://docs.middleware.io/features/mcp/setup.md)
- [docs.middleware.io/features/mcp/setup](https://docs.middleware.io/features/mcp/setup)
- [docs.middleware.io/features/mcp/details](https://docs.middleware.io/features/mcp/details)
- [docs.middleware.io/features/mcp/tools](https://docs.middleware.io/features/mcp/tools)
