Last9

v0.7.2Monitoring & Observabilitystable

Last9 MCP Server

aiai-agentsclaudecursormcp
Share:
55
Stars
0
Downloads
0
Weekly
0/5

What is Last9?

Last9 is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to last9 mcp server

Last9 MCP Server

This server falls under the Monitoring & Observability category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Last9 MCP Server

Use Cases

Production observability integration
Real-time system monitoring and alerting
last9

Maintainer

LicenseApache-2.0
Languagego
Versionv0.7.2
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y @last9/mcp-server

Manual Installation

npx -y @last9/mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Last9

The Last9 MCP Server bridges AI assistants and production observability by connecting Claude, Cursor, and other MCP clients directly to Last9's monitoring platform. It exposes tools for querying service health metrics (throughput, error rates, latency percentiles), running PromQL queries, searching logs with JSON pipelines, inspecting distributed traces, correlating deployment events with alerts, and managing custom dashboards—all from within a conversation. Platform and SRE teams use it to accelerate incident investigation and root-cause analysis by letting AI reason over live production telemetry.

Prerequisites

  • A Last9 account with an organization set up at app.last9.io
  • For hosted mode: OAuth browser authentication (no binary needed)
  • For self-hosted mode: npm or Homebrew to install the Last9 MCP binary, plus a Last9 refresh token from your API Access settings
  • An MCP-compatible client such as Claude Desktop, Claude Code, or Cursor IDE
1

Choose your deployment mode

Last9 MCP offers two modes. The hosted HTTP mode requires no local install—just OAuth authentication. The self-hosted STDIO mode runs a local binary and uses a refresh token. Choose the mode that fits your security requirements.

2

Option A: Add the hosted endpoint (30-second setup)

For Claude Code, add the hosted HTTP endpoint directly. Replace <org_slug> with your Last9 organization slug from the app URL.

claude mcp add --transport http last9 https://app.last9.io/api/v4/organizations/<org_slug>/mcp
3

Option B: Install the self-hosted binary

Install the Last9 MCP server locally via npm or Homebrew, then retrieve a refresh token from Last9 Settings > API Access.

# Via npm
npm install -g @last9/mcp-server@latest

# Via Homebrew
brew install last9/tap/last9-mcp
4

Configure the self-hosted server in your MCP client

Add the Last9 server to your claude_desktop_config.json using the refresh token obtained from your Last9 account settings.

{
  "mcpServers": {
    "last9": {
      "command": "npx",
      "args": ["-y", "@last9/mcp-server@latest"],
      "env": {
        "LAST9_REFRESH_TOKEN": "your_refresh_token_here"
      }
    }
  }
}
5

Restart your MCP client

Reload Claude Desktop or your IDE. For hosted mode, complete the OAuth flow in your browser when prompted. The Last9 observability tools will then appear in your AI assistant.

Last9 Examples

Client configuration

Self-hosted STDIO configuration for claude_desktop_config.json using a Last9 refresh token.

{
  "mcpServers": {
    "last9": {
      "command": "npx",
      "args": ["-y", "@last9/mcp-server@latest"],
      "env": {
        "LAST9_REFRESH_TOKEN": "your_refresh_token_here"
      }
    }
  }
}

Prompts to try

Use these prompts with your AI assistant once connected to Last9 to query production observability data.

- "Show me the error rate and p99 latency for the payments service over the last 1 hour"
- "Run a PromQL query for `rate(http_requests_total{status=~'5..'}[5m])` and explain the results"
- "Find the slowest database queries in the last 30 minutes from OpenTelemetry trace spans"
- "Search logs for ERROR level messages from the auth service in the past 15 minutes"
- "Correlate the spike in errors at 14:30 UTC with any deployments that happened around that time"

Troubleshooting Last9

Self-hosted server fails to authenticate with 'invalid token' error

Generate a new refresh token from Last9 Settings > API Access. Ensure the token is set as LAST9_REFRESH_TOKEN (not a bearer token) and that your organization slug in the API host matches your account.

No tools appear after adding the hosted HTTP endpoint

Complete the OAuth browser flow that appears when the server first connects. If the browser prompt did not appear, try adding the endpoint again via `claude mcp add` and check that the org_slug in the URL matches your Last9 organization.

PromQL queries return empty results

Verify the metric names exist in your Last9 data source by checking the Last9 Metrics Explorer. Ensure the time range covers a period when data was being ingested, and that the datasource name matches what is configured in Last9.

Frequently Asked Questions about Last9

What is Last9?

Last9 is a Model Context Protocol (MCP) server that last9 mcp server It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Last9?

Install via npm with the command: npx -y @last9/mcp-server. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Last9?

Last9 works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Last9 free to use?

Yes, Last9 is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.

Browse More Monitoring & Observability MCP Servers

Explore all monitoring & observability servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "last9": { "command": "npx", "args": ["-y", "@last9/mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Last9?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides