Catalog PyPI
PACKAGE EXPLORERView in registry

agentlens-mcp

PyPI

MCP server for AgentLens — zero-code observability for MCP-native AI agents

agentsaidebuggingllmmcpmodel-context-protocolobservability
Versions collected1
Direct dependencies3From release 0.2.0
Last observed20 Oct, 22:34 UTC

README

Version 0.2.0 documentation

agentlens-mcp

MCP server for AgentLens — zero-code observability for any MCP-compatible agent (Claude Desktop, Cursor, Windsurf, etc.).

Any agent that supports MCP can send traces to AgentLens without installing the Python or TypeScript SDK.

Install

pip install agentlens-mcp

Prerequisites

Start the AgentLens server:

pip install agentlens-server
agentlens-server

Configure in your MCP client

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json)

{
  "mcpServers": {
    "agentlens": {
      "command": "agentlens-mcp"
    }
  }
}

Cursor / Windsurf

Add to your MCP server config:

{
  "agentlens": {
    "command": "agentlens-mcp"
  }
}

Tools Exposed

Once connected, your MCP agent can call these tools:

ToolDescription
agentlens_start_sessionStart a new debugging session. Returns a session_id to use in subsequent calls.
agentlens_report_traceReport a trace event (LLM call, tool call, decision, memory op, error).
agentlens_report_memoryReport a memory state change (created, updated, accessed, deleted).

How It Works

The MCP server receives tool calls from your agent and forwards them to the AgentLens HTTP server (http://localhost:8766). Events appear in the dashboard in real-time.

Agent → MCP call → agentlens-mcp server → HTTP POST → AgentLens server → Dashboard

Example Usage (inside a Claude conversation)

Once the MCP server is connected, Claude can instrument its own tasks:

1. Call agentlens_start_session → get session_id
2. For each tool call: agentlens_report_trace(session_id, event_type="tool_call", ...)
3. For each LLM decision: agentlens_report_trace(session_id, event_type="decision", ...)

Open http://localhost:5173 to watch the trace build in real time.

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.2.018 Mar 20263

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
arkfelix7/agentlens

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:34 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:c3dfe46d29fe9a6eb271744095d079ce200493d6db6a5ff815053aaf2e033c04