021-mcp
MCP server for interacting with LLM traces. Search, analyze, and debug your AI agent executions through any MCP-compatible client.
Installation
pip install 021-mcp
Or with uvx:
uvx 021-mcp
Configuration
Environment Variables
| Variable | Required | Description |
|---|---|---|
TRACES_API_KEY |
Yes | Your API key for authentication |
TRACES_BASE_URL |
No | Base URL of the traces API (default: https://api.021labs.ai) |
Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"traces": {
"command": "uvx",
"args": ["021-mcp"],
"env": {
"TRACES_API_KEY": "your-api-key-here"
}
}
}
}
Manus
Add to your Manus MCP configuration:
{
"servers": {
"traces": {
"command": "uvx",
"args": ["021-mcp"],
"env": {
"TRACES_API_KEY": "your-api-key-here"
}
}
}
}
Cursor / Other MCP Clients
Most MCP clients support a similar configuration format. The key elements are:
- command:
uvx(orpython -m mcp_traces.serverif installed via pip) - args:
["021-mcp"] - env: Must include
TRACES_API_KEY
Available Tools
list_traces
List traces with optional filters.
Parameters:
status- Filter by status: SUCCESS, ERROR, or RUNNINGsearch- Full-text search querystart_time- Filter traces after this ISO timestampend_time- Filter traces before this ISO timestampsession_id- Filter by session IDuser_id- Filter by user IDproject_id- Filter by project IDlimit- Maximum results (1-100, default 20)
Example usage:
"Show me the last 10 traces that failed" "Find traces from yesterday that mention 'database'"
get_trace
Get detailed information about a specific trace.
Parameters:
trace_id- The trace ID to fetchinclude_io- Include full input/output data (default: false)
Example usage:
"Get details for trace abc123" "Show me trace xyz789 with all the LLM inputs and outputs"
get_span
Get full details for a specific span including input/output.
Parameters:
span_id- The span ID to fetch
Example usage:
"What was the input to span def456?" "Show me the LLM response in span ghi789"
get_analytics
Get analytics summary for traces.
Parameters:
start_time- Start of time rangeend_time- End of time rangegranularity- hour, day, or week (default: day)project_id- Filter by project ID
Example usage:
"Show me trace analytics for the last week" "What's the error rate for project X?"
search_errors
Find recent traces that ended in errors.
Parameters:
limit- Maximum results (default: 10)start_time- Filter errors after this timestampproject_id- Filter by project ID
Example usage:
"Find recent errors" "What failed in the last hour?"
Development
# Clone and install
git clone https://github.com/021labs/rl.git
cd rl/packages/mcp
# Install dependencies
uv sync
# Run locally
uv run 021-mcp
# Run tests
uv run pytest
License
MIT
Metadata
Release files for 021-mcp 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| 021_mcp-0.1.4.tar.gz | 9.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 021_mcp-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.9 kB
Release files / 021_mcp-0.1.4.tar.gz
| Download URL | 021_mcp-0.1.4.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5428d64f9797760b4d8b0240605418cb5e9e36c325647de7782b453ee4e527b6
|
|
BLAKE2b-256 checksum How to use checksums |
a9e415b02e316ee8add689b2fd817125b7e3b80adda238e0b3284ac689f9d3c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / 021_mcp-0.1.4-py3-none-any.whl
| Download URL | 021_mcp-0.1.4-py3-none-any.whl |
|---|---|
| Size | 11.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a3f3edc658062849a7a18eca06cd0f74e239d62192848c9ab27cfc4b5107e603
|
|
BLAKE2b-256 checksum How to use checksums |
e610ac217e9764e6ab6bb413a914b6c532c74c23f3a304b97ae9e788b9c55b37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|