Last9 MCP Server logo

Last9 MCP Server

by MCP-Mirror

The Last9 MCP Server is a Model Context Protocol server implementation for Last9. It enables AI agents to seamlessly bring real-time production context (logs, metrics, and traces) into your local environment to auto-fix code faster.

View on GitHub

Last updated: N/A

What is Last9 MCP Server?

The Last9 MCP Server is an implementation of the Model Context Protocol (MCP) designed to provide AI agents with real-time production context from Last9's observability platform.

How to use Last9 MCP Server?

The server can be installed via Homebrew or NPM. After installation, configure the server with environment variables (LAST9_AUTH_TOKEN, LAST9_BASE_URL, LAST9_REFRESH_TOKEN). Then, configure your IDE (Claude, Cursor, Windsurf, or VSCode with Github Copilot) to use the MCP server by adding the server configuration to the IDE's settings.

Key features of Last9 MCP Server

  • Provides real-time production context to AI agents

  • Supports multiple IDEs (Claude, Cursor, Windsurf, VSCode)

  • Implements MCP tools for retrieving exceptions, service graphs, and logs

  • Supports adding and retrieving log drop rules

  • Integrates with Last9 Control Plane

Use cases of Last9 MCP Server

  • Automated code fixing with AI assistance

  • Troubleshooting production issues with real-time data

  • Analyzing exceptions and service dependencies

  • Filtering logs based on service and severity

  • Managing log drop rules to control data ingestion

FAQ from Last9 MCP Server

What is Model Context Protocol (MCP)?

MCP is a protocol that allows AI agents to access real-time production context.

What IDEs are supported?

The server works with Claude desktop app, Cursor, Windsurf, and VSCode (Github Copilot) IDEs.

What environment variables are required?

The service requires LAST9_AUTH_TOKEN, LAST9_BASE_URL, and LAST9_REFRESH_TOKEN.

How do I get the required environment variables?

Signup at Last9 and setup one of the integrations. Obtain LAST9_BASE_URL and LAST9_AUTH_TOKEN from the integrations page. The Write Refresh Token can be obtained from the API Access page.

What MCP tools are implemented?

The server implements get_exceptions, get_service_graph, get_logs, get_drop_rules, and add_drop_rule.