npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@tracelens/mcp-server

v1.0.0

Published

TraceLens MCP Server - Query your observability data through AI tools

Readme

TraceLens MCP Server

Model Context Protocol server for TraceLens observability platform. Query your application's performance data, dependency graphs, and security insights directly through AI tools like Kiro CLI, Claude Code, and Cursor.

Installation

npm install -g @tracelens/mcp-server

Usage

With Kiro CLI

Add to your .kiro/settings/mcp.json:

{
  "mcpServers": {
    "tracelens": {
      "command": "tracelens-mcp",
      "args": [
        "--endpoint", "http://localhost:3001",
        "--project", "my-app"
      ]
    }
  }
}

With Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "tracelens": {
      "command": "tracelens-mcp",
      "args": [
        "--endpoint", "http://localhost:3001",
        "--project", "my-app"
      ]
    }
  }
}

Available Tools

get_performance_bottlenecks

Identify current performance bottlenecks and slow operations.

Parameters:

  • timeRange (string): Time range to analyze (1h, 24h, 7d) - default: "1h"
  • threshold (number): Minimum duration threshold in milliseconds - default: 100

analyze_dependency_graph

Get dependency graph analysis and critical path information.

Parameters:

  • operation (string, optional): Specific operation to analyze

get_security_insights

Get runtime security vulnerabilities and risk assessment.

Parameters:

  • severity (string): Minimum severity level (low, medium, high, critical)

query_traces

Search and filter execution traces.

Parameters:

  • operation (string, optional): Operation name to filter by
  • status (string, optional): Trace status filter (success, error)
  • minDuration (number, optional): Minimum duration in milliseconds
  • limit (number): Maximum number of traces to return - default: 10

get_application_health

Get overall application health metrics and status.

Parameters:

  • includeMetrics (boolean): Include detailed performance metrics - default: true

Example Queries

With Kiro CLI

kiro-cli "What are the current performance bottlenecks in my app?"
kiro-cli "Show me the dependency graph for the user authentication flow"
kiro-cli "What security vulnerabilities are actually being used at runtime?"
kiro-cli "Find all slow database queries from the last hour"

With Claude Code

What's causing my API to be slow? Use TraceLens to analyze the bottlenecks.

Show me the critical path for my checkout process.

Are there any high-severity security issues I should fix immediately?

Configuration

Command Line Options

  • --endpoint <url>: TraceLens API endpoint (default: http://localhost:3001)
  • --api-key <key>: TraceLens API key (optional)
  • --project <id>: Project ID to query (default: "default")

Environment Variables

  • TRACELENS_ENDPOINT: API endpoint
  • TRACELENS_API_KEY: API key
  • TRACELENS_PROJECT_ID: Project ID

Development

# Install dependencies
npm install

# Build
npm run build

# Run in development
npm run dev

# Test
npm test

License

MIT - see LICENSE file for details.