Skip to main content

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.

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.15.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.15-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tracenexus-0.1.15.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.18.33.1-microsoft-standard-WSL2

File hashes

Hashes for tracenexus-0.1.15.tar.gz
Algorithm Hash digest
SHA256 f3b3dd7b71c9cb9f1d2dbf222d3547bee90bcb476814164da0becaf9db55ed87
MD5 4cf297dfc11b6e1b8692a6f97ec64cb3
BLAKE2b-256 ee42349bf5fdf12509e65135013a500fce2a27ed81ee3f3fbb9675ad605a3bdc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tracenexus-0.1.15-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.18.33.1-microsoft-standard-WSL2

File hashes

Hashes for tracenexus-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 de1e2d556e9170654b84447f7b79349f04198f7bfea29b7ab77909f668167662
MD5 abdbabdfd7ae5f73455effab0c7d3bc3
BLAKE2b-256 494327387bd770a831e97d9451be1d50af34ebf2e5804e7be642ea3414130efa

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.15 This release

2 files

0.1.12

2 files

0.1.10

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page