Skip to content
Last9 Last9

Last9 MCP

Ask your agent to bring production context to your local environment, debug issues, and fix them.

What is Model Context Protocol?

MCP is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications. Just as USB-C provides a standardized way to connect your devices to various peripherals and accessories, MCP provides a standardized way to connect AI models to different data sources and tools.

Using MCP, the agent in your preferred IDE (Cursor, Windsurf, VS Code) or Claude desktop app can talk to Last9 (or other various products) to fetch additional information.

Why use Last9 MCP?

The core idea was, how do we help with developer productivity?

The Last9 MCP server lets developers bring in context of real-time production issues to their local dev environment and let the agent auto-suggest fixes to their codebase based on the production obeservability data.

Gone are the days of “but this works on my machine”. Read more in our launch blogpost.

Get Started

  1. Send logs, metrics, & traces to Last9 using the OpenTelemetry integration

  2. Install the Last9 MCP server

    # Add the Last9 tap
    brew tap last9/tap
    # Install the Last9 MCP CLI
    brew install last9-mcp
  3. Connect to the Last9 MCP server

    1. Open the Claude Desktop app
    2. Go to Settings, then Developer, click Edit Config
    3. Open the claude_desktop_config.json file
    4. Copy and paste the server config to your existing file, then save
    5. Restart Claude, if already running
    {
    "mcpServers": {
    "last9": {
    "command": "/opt/homebrew/bin/last9-mcp",
    "env": {
    "LAST9_AUTH_TOKEN": "your_auth_token",
    "LAST9_BASE_URL": "https://otlp.last9.io"
    }
    }
    }
    }
  4. Vibe

MCP Tools

Tools are a powerful primitive in the Model Context Protocol (MCP) that enable servers to expose executable functionality to clients. Through tools, LLMs can interact with external systems, perform computations, and take actions in the real world.

The agent will have to context to call these tools on its own. Currently supported tools/use cases:

  1. get_exceptions: Retrieve the latest exceptions and errors
  2. get_service_graph: Retrieve upstream and downstream relationships
  3. get_logs: Retrieve the latest logs
  4. More coming soon…

Demo


Troubleshooting

Please get in touch with us on Discord or Email if you have any questions.