Last9
Last9 MCP Server
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
Maintainer
Works with
Installation
NPM
npx -y @last9/mcp-serverManual Installation
npx -y @last9/mcp-serverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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.
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>/mcpOption 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-mcpConfigure 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"
}
}
}
}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.
Last9 Alternatives — Similar Monitoring & Observability Servers
Looking for alternatives to Last9? Here are other popular monitoring & observability servers you can use with Claude, Cursor, and VS Code.
Netdata
★ 78.9kReal-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
Kubeshark
★ 11.9keBPF-powered network observability for Kubernetes. Indexes L4/L7 traffic with full K8s context, decrypts TLS without keys. Queryable by AI agents via MCP and humans via dashboard.
Mission Control
★ 4.9kSelf-hosted AI agent orchestration platform: dispatch tasks, run multi-agent workflows, monitor spend, and govern operations from one mission control dashboard.
Grafana
★ 3.0kThis MCP server enables natural-language querying of Grafana logs by automatically detecting log sources and service labels. It provides read-only access to log data with intelligent caching for efficient repeat queries.
Sentrux
★ 2.4kReal-time architectural sensor that helps AI agents close the feedback loop, enabling recursive self-improvement of code quality. Pure Rust.
OpenInference
★ 986OpenTelemetry Instrumentation for AI Observability
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.
Set Up Last9 in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.