Skip to main content

A platform-agnostic MCP server for LLM observability

Project description

TraceNexus

WORK IN PROGRESS

This project is under active development and should be considered experimental.

TraceNexus is an MCP (Model Context Protocol) server for LLM observability traces. It currently supports LangSmith and Langfuse and runs both MCP transports:

  • streamable-http for clients like Cursor
  • sse

Quick Start

1. Prerequisites

  • Python 3.11+

2. Install

pip install --upgrade tracenexus

3. Configure

Create a .env file where you run tracenexus.

If you are running from a cloned repo, start with:

cp .env.example .env

Example .env:

# LangSmith configuration (comma-separated)
LANGSMITH_API_KEYS="prod-api-key,dev-api-key"
LANGSMITH_NAMES="prod,dev"

# Langfuse configuration (comma-separated)
LANGFUSE_NAMES="dev,prod,staging,nightly,services"
LANGFUSE_PUBLIC_KEYS="pk_dev,pk_prod,pk_staging,pk_nightly,pk_services"
LANGFUSE_SECRET_KEYS="sk_dev,sk_prod,sk_staging,sk_nightly,sk_services"
LANGFUSE_HOSTS="https://cloud.langfuse.com,https://cloud.langfuse.com,https://cloud.langfuse.com,https://cloud.langfuse.com,https://cloud.langfuse.com"

Rules:

  • Values are positional. Item N in each list must describe the same project.
  • If multiple projects share one host, repeat that host value.
  • Restart tracenexus after .env changes.

4. Run

tracenexus

Default endpoints:

  • HTTP: http://localhost:52734/mcp
  • SSE: http://localhost:52735/sse

5. Connect Your MCP Client

For Claude Code:

claude mcp add tracenexus --transport streamable-http --url http://localhost:52734/mcp

For Cursor:

{
  "mcpServers": {
    "tracenexus": {
      "transport": "streamable-http",
      "url": "http://localhost:52734/mcp"
    }
  }
}

Tool Naming

TraceNexus exposes tools in this format:

  • langsmith_<name>_get_trace
  • langfuse_<name>_get_trace

If a configured name contains dashes, they become underscores in tool names.

Troubleshooting

  • 404 ... not found within authorized project: Key is valid, but mapped to the wrong project for that trace ID.
  • 401 ... invalid credentials: Key and host do not belong together.
  • Tool names not updated after changing .env: Restart tracenexus.

Contributing

Contributor/developer workflow is documented in CONTRIBUTING.md.

License

This project is licensed under MIT. See LICENSE.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tracenexus-0.1.12.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tracenexus-0.1.12-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file tracenexus-0.1.12.tar.gz.

File metadata

  • Download URL: tracenexus-0.1.12.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.11.8 Linux/6.6.87.2-microsoft-standard-WSL2

File hashes

Hashes for tracenexus-0.1.12.tar.gz
Algorithm Hash digest
SHA256 388722391d9560dca796a8bcf8127807928a5b50909f20608bb32413981f8d42
MD5 e6d318600412dad07127cecfb0173e00
BLAKE2b-256 ce684716f23eab0c8641f995052328c7b0adce7f3cc9c2e5848648d9d6787b56

See more details on using hashes here.

File details

Details for the file tracenexus-0.1.12-py3-none-any.whl.

File metadata

  • Download URL: tracenexus-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.11.8 Linux/6.6.87.2-microsoft-standard-WSL2

File hashes

Hashes for tracenexus-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 0504cc57fb9f6c6bc3accea29a37d60cf693e43767f5aa1fa2b3d61aadfc350f
MD5 90be59f65f4363e0a8e3a44f3963d51f
BLAKE2b-256 6887f6dd6c108e33ee6ec616cb96cd40d6d228b34a066b837d8a96a9287b9f2a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page