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:
Access the langsmith-fetch tool from the GitHub repository: https://github.com/langchain-ai/langsmith-fetch
Create a skill in Claude Computer/Cursor using this bash tool
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.