Last9 MCP Server

Seamlessly bring real-time production context—logs, metrics, and traces—into your local environment to auto-fix code faster.

Remote serverstreamable-httpGo

What is the Last9 MCP server?

Last9 MCP server is a hosted integration for AI assistants that speak the Model Context Protocol. Seamlessly bring real-time production context—logs, metrics, and traces—into your local environment to auto-fix code faster.

What you get

Your AI agent doesn't know what's broken in production. This fixes that.

What the assistant can call

Once Last9 is connected, these are the calls the assistant has available:

  • Cursor — The Cursor tool exposed by this server
  • Windsurf — The Windsurf tool exposed by this server
  • Logs — The Logs tool exposed by this server
  • Traces — The Traces tool exposed by this server
  • get_exceptions — The get_exceptions tool exposed by this server
  • get_service_summary — The get_service_summary tool exposed by this server
  • get_service_environments — The get_service_environments tool exposed by this server
  • get_service_performance_details — The get_service_performance_details tool exposed by this server
  • get_service_operations_summary — The get_service_operations_summary tool exposed by this server
  • get_service_dependency_graph — The get_service_dependency_graph tool exposed by this server
  • get_apm_service_deviations — The get_apm_service_deviations tool exposed by this server
  • get_databases — The get_databases tool exposed by this server

Configuration and credentials

You will need 4 environment variables: LAST9_REFRESH_TOKEN, LAST9_HTTP, LAST9_PORT, LAST9_API_HOST. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Setting it up

Being a remote server, there is no local install. You register the endpoint with your client, authorise it once, and the tools appear.

Choosing this one

This sits in the monitoring and observability group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Last9's toolset — Cursor, Windsurf, Logs and 11 more — is a fair guide to whether it matches your workflow.

This entry was verified against Last9's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Before you rely on it

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Last9.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the last9 mcp server does with a few real requests.

Available tools

ToolWhat it does
CursorThe Cursor tool exposed by this server.
WindsurfThe Windsurf tool exposed by this server.
LogsThe Logs tool exposed by this server.
TracesThe Traces tool exposed by this server.
get_exceptionsThe get_exceptions tool exposed by this server.
get_service_summaryThe get_service_summary tool exposed by this server.
get_service_environmentsThe get_service_environments tool exposed by this server.
get_service_performance_detailsThe get_service_performance_details tool exposed by this server.
get_service_operations_summaryThe get_service_operations_summary tool exposed by this server.
get_service_dependency_graphThe get_service_dependency_graph tool exposed by this server.
get_apm_service_deviationsThe get_apm_service_deviations tool exposed by this server.
get_databasesThe get_databases tool exposed by this server.
get_database_slow_queriesThe get_database_slow_queries tool exposed by this server.
get_database_queriesThe get_database_queries tool exposed by this server.

How to install the Last9 MCP server

{
  "mcpServers": {
    "last9": {
      "command": "/opt/homebrew/bin/last9-mcp",
      "env": {
        "LAST9_REFRESH_TOKEN": "<your_refresh_token>"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
LAST9_REFRESH_TOKENCredential the server authenticates with.Yes
LAST9_HTTPConfiguration value read at startup.Optional
LAST9_PORTConfiguration value read at startup.Optional
LAST9_API_HOSTEndpoint or connection string the server talks to.Optional

Example prompts to try

  • Use Last9 to Cursor.
  • Use Last9 to Windsurf.
  • Use Last9 to Logs.

Frequently asked questions

It connects Last9 to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (Cursor, Windsurf, Logs, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Last9 directly.