Overview
TierZero provides a remote Model Context Protocol (MCP) server that you can connect to any MCP-compliant client. This enables AI assistants like Claude Code or Cursor to access your production context directly, querying logs, metrics, traces, and other telemetry data from your connected integrations to help with debugging, incident investigation, and operational tasks.
Prerequisites
Before setting up the MCP server, you need to generate a Personal Access Token (PAT) from TierZero:
- Navigate to https://auth.tierzero.ai/account/api_keys/
- Create a new personal API key
- Add the key to your shell
export TIERZERO_PAT_TOKEN="<new-api-key>"
- Save this token to
TIERZERO_PAT_TOKEN in ~/.zshrc or your preferred shell.
Keep your PAT secure! This token grants access to your production telemetry data. Never commit it to version control or share it publicly.
Setup Instructions
Setup for Claude Code (Recommended)
The easiest way to use TierZero with Claude Code is through our official plugin:
- Add the TierZero marketplace:
/plugin marketplace add TierZeroAI/tierzero-claude-code
- Install the plugin:
/plugin install tierzero@tierzero
Once installed, use the /tierzero command to investigate production issues:
/tierzero What errors occurred in payment-service in the last hour?
This runs in the background so you can continue working while TierZero queries your telemetry. Use /tasks to check progress.
Project-Wide Installation
To enable the TierZero plugin for your entire team, add this to your project’s .claude/settings.json:
{
"extraKnownMarketplaces": {
"tierzero": {
"source": {
"source": "github",
"repo": "TierZeroAI/tierzero-claude-code"
}
}
},
"enabledPlugins": {
"tierzero@tierzero": true
}
}
Commit this file to your repository. Anyone who clones the project will have the TierZero plugin available automatically.
Alternative: Manual MCP Configuration
If you prefer manual configuration, you can add the MCP server directly:
claude mcp add tierzero-server https://api.tierzero.ai/mcp/ \
--transport http \
--header "Authorization: Bearer \${TIERZERO_PAT_TOKEN}"
Setup for Cursor
For Cursor, you’ll need to manually configure the MCP server in your settings:
- Open Cursor Settings (Cursor → Settings → Cursor Settings)
- Navigate to Tools & MCP
- Add a new MCP server with the following configuration:
{
"mcpServers": {
"tierzero-server": {
"type": "http",
"url": "https://api.tierzero.ai/mcp/",
"headers": {
"Authorization": "Bearer ${env:TIERZERO_PAT_TOKEN}"
}
}
}
}
- Restart Cursor to apply the changes
Once connected, the TierZero MCP server provides the following capabilities:
tierzero_ask
Query your production telemetry data and get AI-powered insights. This tool can:
- Query logs, metrics, traces, and spans from connected integrations (Datadog, New Relic, CloudWatch, etc.)
- Analyze error patterns and investigate incidents
- Retrieve documentation from your knowledge bases (Confluence, Notion, Slack)
- Inspect CI/CD pipelines and workflow executions
This tool invokes TierZero agent to process your query, which may take several minutes to complete. Clients that support MCP progress notifications will display progress updates during execution.
Troubleshooting
Connection Issues
If you’re having trouble connecting:
- Verify your PAT: Ensure the token is valid by testing it with a direct API call
- Check URL: Make sure you’re using the correct URL
- Authorization header: Verify the header format is exactly
Authorization: Bearer YOUR_TOKEN
Authentication Errors
If you see authentication errors:
- Generate a new PAT from the API keys page
- Update your MCP server configuration with the new token
- Restart Claude Code or Cursor