Is the LangChain MCP server safe? What it can reach
What the LangChain MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
LangChain hosts the LangSmith Remote MCP, which signs in with OAuth or a LangSmith API key and reads conversation threads, traces, prompts, datasets, experiments and billing. Every documented tool is read-only. LangChain also hosts two separate public documentation servers.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| LangSmith Remote MCP (hosted by LangChain) | Official | active |
| LangSmith MCP Server, standalone (langchain-ai/langsmith-mcp-server) | Official | archived |
| LangChain docs MCP (docs.langchain.com/mcp) | Official | active |
| mcpdoc (langchain-ai/mcpdoc) | Official | archived |
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
Interactive clients use OAuth 2.1 with dynamic client registration. Programmatic clients can send a LangSmith API key in the X-Api-Key header. Access is scoped to your user, workspace and key permissions.
What its tools can do
| Kind | Tools |
|---|---|
| Read | get_thread_history, list_prompts, get_prompt_by_name, push_prompt, fetch_runs, list_projects, list_datasets, list_examples, read_dataset, read_example, create_dataset, update_examples, list_experiments, run_experiment, get_billing_usage |
| Write | none documented |
| Can’t be undone | none documented |
LangChain’s docs describe push_prompt, create_dataset, update_examples and run_experiment as documentation-only tools that explain how to do those tasks. They do not change anything. The two public docs servers (docs-langchain and reference-langchain) are described but their tool names are not listed in the sources read.
Built-in limits
| Option | What it does |
|---|---|
OAuth consent and LangSmith workspace roles | The session can only view what your account can view. Revoking access in LangSmith ends the session. |
workspace_id argument | Tools that accept it can target one workspace. Otherwise the API key’s own workspace is used. |
Scoped API key | For programmatic use, create a key limited to the workspace you want. The standalone server also takes LANGSMITH_WORKSPACE_ID. |
The risks
- Traces, runs and thread history hold the full prompts and outputs of your apps. They can include customer messages, secrets that leaked into prompts, and tool results.
- Stored traces are untrusted text. A trace of a past user message can contain instructions that an agent reads back through fetch_runs or get_thread_history.
- An API key sent in the X-Api-Key header acts as you in that workspace. Anyone holding it can read the same data.
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/mcpClaude Code names MCP tools mcp__langsmith__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:
{
"permissions": {
"ask": [
"mcp__langsmith__fetch_runs",
"mcp__langsmith__get_thread_history",
"mcp__langsmith__get_billing_usage"
]
}
}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 OAuth, and revoke access in LangSmith when you are done.
- Point it at a workspace that does not hold production customer data.
- Treat trace content as untrusted text, not as instructions.
- Use the regional endpoint that matches where your LangSmith account runs.
Checked against the vendor documentation on November 25, 2026. LangSmith Remote MCP · LangSmith MCP Server (deprecated page) · Use LangChain docs programmatically · langchain-ai/langsmith-mcp-server · langchain-ai/mcpdoc
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