home / mcp / agentops mcp server
agentops mcp
Configuration
View docs{
"mcpServers": {
"agentops-ai-agentops-mcp": {
"command": "npx",
"args": [
"agentops-mcp"
]
}
}
}The AgentOps MCP server exposes observability and tracing data to help you debug complex AI agent runs. It provides context about where an agent succeeds or fails, enabling faster troubleshooting and performance improvements.
Configure your MCP client to connect to the AgentOps MCP server by using the stdio configuration. This server runs locally as a process you start from your development environment, allowing you to request traces and spans during agent runs.
Prerequisites you need before installing and running the MCP server:
- Node.js version 18.0.0 or higher
Install and run the MCP server locally using the following steps.
# Clone the MCP project repository
git clone https://github.com/AgentOps-AI/agentops-mcp.git
cd agentops-mcp
# Install dependencies
npm install
# Build the project
npm run build
# Pack the server (prepare for local execution in your environment)
npm packUse the following MCP client configuration to run the AgentOps MCP server as a stdio process. The server is started via a simple command that launches the MCP package and exposes the required tools.
{
"mcpServers": {
"agentops_mcp": {
"command": "npx",
"args": ["agentops-mcp"],
"env": {
"AGENTOPS_API_KEY": ""
}
}
}
}Authorize using an AgentOps project API key and return a JWT token.
Retrieve trace information by ID.
Get span information by ID.
Get comprehensive trace information including all spans and their metrics.