LangChain Support
Back to LangSmith Observability

How do I connect Claude Code/Cursor to LangSmith Cloud for trace investigation?

LangSmith Observability·1 min read·Jan 30, 2026··

Context

You want to connect Claude Computer (CC) or Cursor to LangSmith Cloud to directly investigate and analyze traces. This integration would allow you to use AI assistance for analyzing performance issues and optimizing queries or code based on trace data.

Answer

While LangSmith doesn't have a dedicated MCP (Model Context Protocol) server, you can use the langsmith-fetch bash tool to enable this integration.

To set this up:

  1. Access the langsmith-fetch tool from the GitHub repository: https://github.com/langchain-ai/langsmith-fetch

  2. Create a skill in Claude Computer/Cursor using this bash tool

  3. Configure the tool to connect to your LangSmith Cloud instance

Once configured, you can use Claude to analyze slow traces, identify performance bottlenecks, and receive suggestions for optimizing queries or code. This setup is particularly effective when combined with other tools like Neo4j for comprehensive database query analysis and optimization.