Last9 MCP Server logo

Last9 MCP Server

by last9

Connects MCP clients to Last9 observability and lets agents edit dashboard panels, titles, and variables.

Install Last9 MCP Server

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "last9-last9-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@last9/mcp-server@latest"
      ],
      "env": {
        "LAST9_REFRESH_TOKEN": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

last9/last9-mcp-server connects MCP-compatible assistants to Last9 production observability data, including logs, metrics, traces, exceptions, alerts, deployments, and database queries. Its dashboard tools let agents add, update, remove, and reorder panels, change dashboard titles, and manage variables. Use the hosted HTTP endpoint for OAuth-based setup, or run the package locally over STDIO when the client lacks HTTP transport or local execution is preferred.

Use cases

  • Edit dashboard layouts through an MCP client
  • Add or reposition panels during an observability workflow
  • Update dashboard titles and variables
  • Connect an assistant to Last9 production context
  • Run the server locally when HTTP transport is unavailable

Key features

  • Last9 observability access over MCP
  • Dashboard panel creation, editing, deletion, and reordering
  • Dashboard title management
  • Dashboard variable replacement and insertion
  • Hosted HTTP and local STDIO transport options
  • Configurable toolsets and read-only mode

Tools6

What Last9 MCP Server lets your agent do. Expand a tool for its parameters.

Self-reported~112 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

21/21 checks healthy over the last 79d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8d ago via OSV.dev · @last9/mcp-server@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars63Stargazers on the source repository.
npm downloads746Package downloads in the last 30 days.
Last commit1d agoMost recent push to the default branch.
Tools exposed6Callable tools this server registers over MCP.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Last9 MCP Server works

What last9/last9-mcp-server MCP server does

last9/last9-mcp-server connects MCP clients with Last9 observability data and dashboard configuration. The Last9 service covers production signals such as logs, metrics, traces, exceptions, database queries, alerts, and deployments. The MCP interface can also modify dashboard structure through focused tools for panels, titles, and variables.

Dashboard changes include inserting a complete panel object, replacing selected top-level fields on an existing panel, deleting a panel, moving a panel to a zero-based position, setting the dashboard name, and replacing or appending a dashboard variable based on its target.

How it works

The hosted deployment uses a streamable HTTP endpoint under the organization’s Last9 URL. Replace <org_slug> in https://app.last9.io/api/v4/organizations/<org_slug>/mcp with the organization slug from the Last9 application URL, then authenticate through OAuth in the MCP client.

A local STDIO deployment runs either the Homebrew binary, the npm package, or a downloaded platform binary. Local authentication uses a Last9 refresh token. Only administrators can create that token, and the setup flow requires a token with Write permissions.

The server supports toolset selection and a read-only mode for local operation. Read-only mode exposes only tools marked as read-only; write tools can be selectively allowed when needed. Toolset filtering and read-only filtering are applied together.

Setup and configuration

For hosted use, configure the HTTP URL in Claude Code, Cursor, Windsurf, VS Code, or Claude Web/Desktop, then complete OAuth. VS Code’s hosted setup requires version 1.99 or newer. Claude organization connectors require administrator access.

For local use, install with Homebrew using brew install last9/tap/last9-mcp, install the npm package globally, run it with npx -y @last9/mcp-server@latest, or download a release binary. The required environment variable is LAST9_REFRESH_TOKEN. LAST9_DATASOURCE selects a datasource or Levitate cluster, while LAST9_API_HOST changes the API host.

LAST9_TOOLSETS limits exposed tool groups, including logs, traces, metrics, alerts, dashboards, profiles, grafana, and investigate. LAST9_MCP_READ_ONLY=true enables read-only operation, and LAST9_MCP_ALLOW_WRITE_TOOLS can allow selected write tools in that mode. The server also supports log-entry limits, server-side log search, chunking diagnostics, and optional OpenTelemetry settings.

Tools and capabilities

  • Add a dashboard panel at a chosen zero-based position or append it.
  • Update selected top-level fields on a panel without changing its ID.
  • Remove a panel by ID.
  • Move a panel to a specified zero-based index.
  • Set the dashboard title.
  • Replace a variable with the same target or append a new variable.

The panel version defaults to 1 when adding a panel. Setting a field to null removes that top-level field during an update, and panel IDs cannot be changed.

Limitations and notes

Hosted setup requires an organization slug and OAuth access. Local setup requires an administrator-created refresh token with Write permissions. Earlier Node.js releases should not be used for npm installation; the documented supported lines are Node.js 22.23.4+, 24.22.1+, or 26.12.1+. Read-only mode hides unannotated tools as well as tools that can change or delete resources.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Last9 MCP Server

last9/last9-mcp-server is an MCP server that connects AI assistants to Last9 production observability data, including logs, metrics, traces, exceptions, alerts, deployments, and database queries. Its main dashboard tools add, update, remove, and move panels, set titles, and replace or append dashboard variables.

Install it with Homebrew, npm, npx, or a platform binary. Homebrew uses `brew install last9/tap/last9-mcp`; npm can install `@last9/mcp-server@latest`, and npx can run it directly. Local configurations require `LAST9_REFRESH_TOKEN`, which an administrator creates with Write permissions.

Yes, it works with Cursor through either the hosted HTTP endpoint or a local STDIO configuration. For hosted use, add the organization MCP URL in Cursor’s MCP settings and complete OAuth. For local use, configure the installed command or `npx` and provide `LAST9_REFRESH_TOKEN`.

Yes, set `LAST9_MCP_READ_ONLY=true` or pass `--read-only`. The server then exposes only tools marked read-only. Selected write tools can be permitted with `LAST9_MCP_ALLOW_WRITE_TOOLS`, and toolset filtering still applies alongside the read-only setting.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLast9 MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/last9-last9-mcp-server?style=directory)](https://allmcps.com/mcp/last9-last9-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/last9-last9-mcp-server"><img src="https://allmcps.com/api/badge/last9-last9-mcp-server?style=directory" alt="Last9 MCP Server on AllMCPs" /></a>