Model Context Protocol tool support for LangChain
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add langchain -- uv run tests/demo.py 'Read and summarize the file ./LICENSE'~/.codex/config.toml
[mcp_servers.langchain]
command = "uv"
args = ["run", "tests/demo.py", "Read and summarize the file ./LICENSE"]
# codex mcp add langchain -- uv run tests/demo.py 'Read and summarize the file ./LICENSE'~/.cursor/mcp.json
{
"mcpServers": {
"langchain": {
"command": "uv",
"args": [
"run",
"tests/demo.py",
"Read and summarize the file ./LICENSE"
]
}
}
}.vscode/mcp.json
{
"servers": {
"langchain": {
"type": "stdio",
"command": "uv",
"args": [
"run",
"tests/demo.py",
"Read and summarize the file ./LICENSE"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"langchain": {
"command": "uv",
"args": [
"run",
"tests/demo.py",
"Read and summarize the file ./LICENSE"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"langchain": {
"command": "uv",
"args": [
"run",
"tests/demo.py",
"Read and summarize the file ./LICENSE"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"langchain": {
"command": "uv",
"args": [
"run",
"tests/demo.py",
"Read and summarize the file ./LICENSE"
]
}
}
}