papertrail-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@papertrail-mcpsearch prod logs for authentication failures in the last hour"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Papertrail MCP
A focused, read-only Model Context Protocol server for searching migrated Papertrail logs through the SolarWinds Observability API. It runs locally over stdio and works with Amp, Claude Code, Codex, and other stdio-capable MCP clients.
Tools
papertrail_list_environmentslists complete credential profiles without exposing API tokens or origins.papertrail_getperforms one bearer-authenticatedGETrequest to/v1/logsfor a selected profile.
The server does not expose writes, other SolarWinds Observability endpoints, relative-time parsing, filter composition, terminal formatting, or live-tail polling. Tool output is limited to 2,000 lines or 50 KiB.
Related MCP server: quickwit-mcp
Requirements
Node.js 20 or newer.
A SolarWinds Observability API Access token and regional public API origin for each Papertrail environment.
Configure profiles with environment variables:
export PAPERTRAIL_QA_API_TOKEN="your-qa-api-access-token"
export PAPERTRAIL_QA_API_BASE_URL="https://api.eu-01.cloud.solarwinds.com"
export PAPERTRAIL_STAGING_API_TOKEN="your-staging-api-access-token"
export PAPERTRAIL_STAGING_API_BASE_URL="https://api.na-02.cloud.solarwinds.com"
export PAPERTRAIL_PROD_API_TOKEN="your-prod-api-access-token"
export PAPERTRAIL_PROD_API_BASE_URL="https://api.na-01.cloud.solarwinds.com"The segment between PAPERTRAIL_ and the suffix becomes the lower-case profile name. Each profile needs both _API_TOKEN and _API_BASE_URL. The base URL must be a bare HTTPS origin for the account's SolarWinds Observability region, not a log-ingestion endpoint. The default profile is prod.
SolarWinds Observability API Access tokens currently have broader account access than this server exposes. Use a distinct token per environment where possible, store tokens as secrets, and never commit them to source control.
Run the published package with:
npx -y @andreimaxim/papertrail-mcpThe process communicates over stdio, so running it directly waits for an MCP client and may appear idle.
Amp
The distributable using-papertrail skill starts the MCP server only when Papertrail work loads the skill. Copy it into a project's skill directory:
mkdir -p .agents/skills/using-papertrail
cp skill/using-papertrail/SKILL.md .agents/skills/using-papertrail/SKILL.mdIn Amp, add the corresponding variables under personal, project, or workspace Secrets & Env Vars, storing each _API_TOKEN value as a secret. The bundled skill forwards conventional qa, staging, and prod profiles. Add another variable pair to its mcpServers.papertrail.env map when using a custom profile name.
Amp discovers the skill, launches the MCP process, and keeps its two tools hidden until the skill is loaded. The previous amp.papertrail.* settings are not read by this portable server.
Claude Code
Register the server at user scope:
claude mcp add --scope user --transport stdio papertrail -- \
npx -y @andreimaxim/papertrail-mcpLaunch Claude Code with the desired PAPERTRAIL_<ENVIRONMENT>_API_TOKEN and PAPERTRAIL_<ENVIRONMENT>_API_BASE_URL variables available. A project .mcp.json can declare the equivalent command while referring to securely managed environment variables.
Codex
Add the server to ~/.codex/config.toml or a trusted project's .codex/config.toml:
[mcp_servers.papertrail]
command = "npx"
args = ["-y", "@andreimaxim/papertrail-mcp"]
env_vars = [
"PAPERTRAIL_PROD_API_TOKEN",
"PAPERTRAIL_PROD_API_BASE_URL",
]
enabled_tools = ["papertrail_list_environments", "papertrail_get"]Add both variable names for every additional profile that Codex should forward.
Development
npm install
npm run check
npm pack --dry-runRepository layout:
src/papertrail.ts: profile discovery, URL validation, HTTP transport, redirect safety, and bounded output.src/server.ts: MCP schemas, read-only annotations, and tool handlers.src/index.ts: stdio executable.test/: client and MCP protocol tests.skill/using-papertrail/: optional Amp skill.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Read-only MCP server for turva.dev, an agent-readiness audit and advisory service.
Syslog receiver and MCP server for homelab log intelligence.
Syslog receiver and MCP server for homelab log intelligence.
- SupabaseOAuth
MCP server for interacting with the Supabase platform
Related MCP Servers
- AlicenseBqualityCmaintenanceA read-only MCP server for OpenObserve Community Edition that works over the REST API. Provides tools for searching logs, traces, stream schemas, and dashboards - no Enterprise license required.817GPL 3.0
- AlicenseNot gradedqualityFmaintenanceA read-only MCP server that exposes Quickwit log search and aggregations to LLM clients, enabling natural language log investigation.Apache 2.0
- AlicenseAqualityAmaintenanceMinimal MCP server that integrates with Graylog, enabling agents to search, analyze, and inspect log messages across streams, discover fields and streams, and query multiple Graylog instances.570MIT
- AlicenseAqualityBmaintenanceA read-only MCP server for querying Sumo Logic logs, enabling AI assistants to search and investigate application logs with opinionated tools and secure credential handling.5301MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/andreimaxim/papertrail-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server