How to Use the LangSmith MCP in Claude Code
Pipe LangSmith MCP Server observability data directly into your terminal with Claude Code for headless trace debugging.
Works with every AI agent you already use
…and any MCP-compatible client
Connect LangSmith MCP to Claude Code
Create your Vinkius account to connect LangSmith to Claude Code and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Monitor Projects from the CLI
The `langsmith_list_projects` tool outputs your high-level tracing metrics straight to standard out. Claude Code fetches your project list, grabbing aggregate run counts, latency stats, and feedback scores. This fits perfectly into a morning SRE routine. You run a quick terminal command to check system health, and the agent pulls the latency metrics across all environments without you ever opening a browser tab.
Query Execution Runs Headless
The `langsmith_list_runs` tool extracts recent LLM executions for a specific project. Claude Code pulls the run names, execution statuses, token usage, and timing data. You can script this into a CI/CD pipeline. Have your GitHub Action trigger Claude Code to check the staging project for any failed runs after a deployment, automatically failing the build if the error rate spikes.
Debug Deep MCP Server Traces
The `langsmith_get_run` tool isolates a single trace ID and pulls the granular execution data. Claude Code retrieves the exact inputs, outputs, and intermediate tool calls of that specific run. When an alert fires at 2 AM, you just pipe the trace ID into your terminal. The agent reads the payload, identifies the timeout in the chain execution, and prints the root cause directly to your shell.
Set up LangSmith MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seelangsmith-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest LangSmith transactions." It will automatically discover and invoke the available LangSmith tools.
claude mcp add --transport http langsmith-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about LangSmith MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the LangSmith MCP today
We host it, we monitor it, we maintain it. You just paste one token.