AgentOps API MCP Server

AgentOps API MCP Server

agentops-mcp-server•byagentops-ai

An MCP server that gives LLM agents tools to list recent traces and retrieve detailed trace information from the AgentOps API.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Provides a list_traces tool that returns recent traces from an AgentOps project with trace ID, span count, and start/end times, sorted most recent first.
  • •Provides a trace_detail tool that returns detailed information about a specific trace along with all associated spans, metadata, and timing information.
  • •Handles authentication by exchanging the supplied AgentOps API key for a JWT token without storing keys between requests.
  • •Lets agents override the API URL per request, defaulting to the production AgentOps API.

BEST FOR

  • •Investigating a specific agent trace by fetching its spans, metadata, and timing details.
  • •Reviewing recent activity in an AgentOps project by listing the latest traces.
  • •Testing against a non-production AgentOps API during development.

ABOUT AGENTOPS-MCP-SERVER

AgentOps API MCP Server is cataloged as an MCP server attributed to agentops-ai. An MCP server that gives LLM agents tools to list recent traces and retrieve detailed trace information from the AgentOps API. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for AgentOps API MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How are AgentOps API keys handled by the server?

The agent provides its API key with each request; the server exchanges it for a JWT token and does not store keys between requests.

Can the server return more than the default number of traces?

Yes, list_traces accepts an optional limit parameter; the default is 5 traces.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 8fa9b656856a · 采集于 2026-11-13 12:01:45 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

AgentOps API MCP Server

An MCP (Model Coordination Protocol) server that allows LLM agents to interact with the AgentOps API for accessing trace data.

Overview

This MCP server provides tools for agents to:

  • List recent traces from their AgentOps project
  • Get detailed information about specific traces

The server handles authentication and communication with the AgentOps API, making it easy for agents to access their trace data.

Authentication Flow

The server uses a secure two-step authentication process:

  1. The agent provides their AgentOps API key with each request
  2. The server exchanges this API key for a JWT token from the AgentOps API
  3. The server uses this JWT token to make authenticated requests to the AgentOps API
  4. All responses are passed back to the agent in their raw form

This ensures that API keys are never stored between requests, and each request is authenticated securely with a JWT token.

Available Tools

list_traces

Lists the most recent traces from the agent's project.

Parameters:

  • AGENTOPS_API_KEY (required): The agent's AgentOps API key
  • limit (optional): Maximum number of traces to return (default: 5)
  • AGENTOPS_API_URL (optional): Custom API URL for non-production environments

Response:

  • List of traces with trace ID, number of spans, start/end time
  • Total number of traces in the database
  • Traces sorted by creation timestamp (most recent first)

trace_detail

Gets detailed information about a specific trace.

Parameters:

  • AGENTOPS_API_KEY (required): The agent's AgentOps API key
  • trace_id (required): The trace ID to retrieve details for (from the trace_id field in list_traces response)
  • AGENTOPS_API_URL (optional): Custom API URL for non-production environments

Response:

  • Detailed information about the trace
  • All spans associated with the trace
  • Metadata, timing information, etc.

Usage

This MCP server is designed to work with Claude Coder. Follow these steps to set it up:

  1. Configure Claude Coder

    Add this to your Claude Coder configuration file (typically ~/.config/claude-cli/config.yaml):

    mcp_servers:
      - name: agentops-api
        path: /ABSOLUTE/PATH/TO/mcp/agentops-api/bin/run-server
        description: "AgentOps API integration for accessing trace data"
    

    Replace /ABSOLUTE/PATH/TO with the actual path to this repository.

  2. Use with Claude Coder

    # Run Claude with the AgentOps API MCP server enabled
    claude --mcp agentops-api
    
    # Or for a single command
    claude --mcp agentops-api "List my recent traces. My API key is xyz123"
    
  3. In your prompts to Claude, include your AgentOps API key:

    Can you show me my recent traces? Find my agentops api key in my user .env file. 
    

Running Standalone

If you need to run the server directly:

# Using the convenience script
./bin/run-server

# Or using Python directly
uv run -m mcp_server_agentops_api

The server uses the production AgentOps API at https://api.agentops.ai by default. Agents can override this URL on a per-request basis.

Available Tool Calls

When using the MCP server through Claude, these are the tools it can use:

# List recent traces
list_traces(AGENTOPS_API_KEY="your-api-key", limit=10)

# Get details for a specific trace
trace_detail(AGENTOPS_API_KEY="your-api-key", trace_id="148dac266d95c9dc0b5616320b8488c9")

# Using a custom API URL (e.g., for local development)
list_traces(AGENTOPS_API_KEY="your-api-key", AGENTOPS_API_URL="http://localhost:8000")

Architecture

The code is organized into three main components:

  1. Client (client.py): Handles communication with the AgentOps API, including authentication
  2. Tools (tools.py): Defines the tools available to agents and processes tool requests
  3. Server (server.py): Implements the MCP server that agents interact with

Each request is stateless, with no user data stored between requests, and raw API responses are returned directly to the agent.

Docker

# Build and run the Docker container
docker build -t mcp-server-agentops-api .
docker run mcp-server-agentops-api

Future Enhancements

  • Additional AgentOps API tools (metrics, spans, etc.)
  • Support for filtering and searching traces
  • Batch operations for improved performance
  • Caching of JWT tokens for a short period

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for AgentOps API MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/agentops-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools