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

@langwatch/mcp-server

v0.5.0

Published

An MCP server for Langwatch.

Readme

LangWatch MCP Server

MCP server that gives AI coding agents access to LangWatch observability data, prompts, and documentation via the Model Context Protocol.

Quick Setup

Add to your MCP client configuration (Claude Code, Cursor, etc.):

{
  "mcpServers": {
    "langwatch": {
      "command": "npx",
      "args": ["-y", "@langwatch/mcp-server"],
      "env": {
        "LANGWATCH_API_KEY": "your-api-key-here"
      }
    }
  }
}

For Claude Code, you can also run:

claude mcp add langwatch -- npx -y @langwatch/mcp-server --apiKey your-api-key-here

The API key is required for observability and prompt tools. Documentation tools work without it.

Configuration

| Env Var | CLI Arg | Description | |---------|---------|-------------| | LANGWATCH_API_KEY | --apiKey | API key for authentication | | LANGWATCH_ENDPOINT | --endpoint | API endpoint (default: https://app.langwatch.ai) |

Tools

Documentation

| Tool | Description | |------|-------------| | fetch_langwatch_docs | Fetch LangWatch integration docs | | fetch_scenario_docs | Fetch Scenario agent testing docs |

Observability (requires API key)

| Tool | Description | |------|-------------| | discover_schema | Explore available filters, metrics, aggregations, and groups | | search_traces | Search traces with filters, text query, and date range | | get_trace | Get full trace details with AI-readable formatting | | get_analytics | Query timeseries analytics data |

Prompts (requires API key)

| Tool | Description | |------|-------------| | list_prompts | List all prompts | | get_prompt | Get prompt with messages and version history | | create_prompt | Create a new prompt | | update_prompt | Update prompt or create new version |

Output Formats

The search_traces and get_trace tools support a format parameter:

  • digest (default) — AI-readable trace digest with hierarchical span tree, timing, inputs/outputs, and errors. Optimized for LLM consumption — compact and information-dense.
  • json — Full raw trace data with all fields. Useful for programmatic access or when you need the complete schema.

Usage Tips

  • Start with discover_schema to understand available filter fields and metrics.
  • Use search_traces to find relevant traces, then get_trace for full details.
  • Search returns 25 traces per page by default. Use scrollId from the response to paginate.
  • Analytics uses category.name format for metrics (e.g., performance.completion_time).
  • Use create_prompt / update_prompt with createVersion: true for safe prompt iteration.

Development

Prerequisites

  • Node.js 18+
  • pnpm

Setup

pnpm install

Build

pnpm build

Test

pnpm test        # Run all tests
pnpm test:unit   # Unit tests only

Local testing

Build and point your MCP client to the local dist:

{
  "mcpServers": {
    "langwatch": {
      "command": "node",
      "args": [
        "/path/to/mcp-server/dist/index.js",
        "--apiKey", "your-api-key",
        "--endpoint", "http://localhost:5560"
      ]
    }
  }
}

Support