Skip to content
← All MCP servers

Is the LangSmith MCP server safe? What it can reach

What the LangSmith MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Official serverChecked

LangChain hosts a remote LangSmith MCP server per region, signing in with OAuth 2.1 or an API key header. Its 11 working tools read traces, threads, prompts, datasets, experiments and billing usage. The older standalone server is deprecated and its repo is archived. Trace data can be sensitive, so scope the key to one workspace.

Who maintains it

ImplementationKindStatus
LangSmith Remote MCP (hosted by LangChain)Officialactive
langchain-ai/langsmith-mcp-server (standalone, deprecated for Cloud, repo archived)Officialarchived

It runs as a local process on your machine or as a hosted remote server. The documented endpoint is https://api.smith.langchain.com/mcp.

How it signs in

OAuth 2.1 for interactive clients, or a LangSmith API key in the X-Api-Key header. The server acts with that user’s or key’s workspace and permissions.

What its tools can do

KindTools
Readget_thread_history, list_prompts, get_prompt_by_name, fetch_runs, list_projects, list_datasets, list_examples, read_dataset, read_example, list_experiments, get_billing_usage
Writenone documented
Can’t be undonenone documented

The docs also list push_prompt, create_dataset, update_examples and run_experiment but label them documentation-only, so they are not counted here. The docs do not state whether the remote tools are restricted to reads. The EU, APAC, AWS and Azure regions have their own URLs.

Built-in limits

OptionWhat it does
Key and session scopingThe remote server limits OAuth sessions to your LangSmith user and workspace permissions, and API keys to that key’s workspace and permissions.
Workspace IDOptional. Picks the workspace when your key can reach several: LANGSMITH_WORKSPACE_ID for the standalone server, a LANGSMITH-WORKSPACE-ID header for the standalone HTTP server.
Pagination limitsmax_chars_per_page (default 25000, max 30000) and preview_chars cap how much trace text a call returns.
Regional URLUse the URL for your data region. Self-hosted v0.16 and later use their own host with /api/mcp.

The risks

  • fetch_runs and get_thread_history return full prompts, model outputs and tool inputs from your traces, which can contain customer data or secrets that then enter the model’s context.
  • Text inside a stored trace is untrusted, so an instruction planted in a logged user message could steer the agent that reads it.
  • An API key carries its own workspace and permissions, so use one scoped to a single workspace. get_billing_usage also returns organization usage figures.
  • The standalone server’s repo is archived, so do not rely on it for fixes.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add --transport http langsmith https://api.smith.langchain.com/mcp

Claude Code names MCP tools mcp__langsmith__<tool>. Once you know the tool names, deny the ones you won’t use and set the rest to ask in .claude/settings.json.

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.langsmith]
url = "https://api.smith.langchain.com/mcp"

Checklist

  • Use the hosted server with OAuth rather than a long-lived key where you can.
  • Set the workspace ID if your key reaches several.
  • Pick the URL for your region.
  • Treat trace content the agent reads as untrusted input.
  • Move off the archived standalone server unless you self-host an older LangSmith.

Checked against the vendor documentation on November 25, 2026. LangChain docs: LangSmith MCP server · langchain-ai/langsmith-mcp-server repository · LangChain docs: LangSmith Remote MCP

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing