mcp-langchain-ts-client
LangChain.js client for Model Context Protocol.
Overview
The mcp-langchain-ts-client is a LangChain.js client designed for the Model Context Protocol, allowing developers to interact with the Model Context Protocol using JavaScript and TypeScript.
To use the mcp-langchain-ts-client, install the package via npm and initialize the MCPToolkit with your server parameters, then extract and utilize compatible tools for integration into your applications.
- Easy installation via npm - Seamless integration with LangChain.js - Support for multiple tools and configurations
- Building AI applications using the Model Context Protocol.
- Creating chatbots that utilize Language Models through LangChain.js.
- Developing real-time applications that require sophisticated AI interactions.
Add to your AI client
Use these steps to connect mcp-langchain-ts-client in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-langchain-ts-client-isaacwasserman": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-langchain-ts-client-isaacwasserman"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-langchain-ts-client-isaacwasserman": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-langchain-ts-client-isaacwasserman"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-langchain-ts-client-isaacwasserman": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-langchain-ts-client-isaacwasserman"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-langchain-ts-client-isaacwasserman": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-langchain-ts-client-isaacwasserman"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-langchain-ts-client-isaacwasserman": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-langchain-ts-client-isaacwasserman"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-langchain-ts-client-isaacwasserman": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-langchain-ts-client-isaacwasserman"
]
}
}
}FAQ
What programming languages are supported?
The mcp-langchain-ts-client is built for JavaScript and TypeScript environments.
Are there any prerequisites for using this client?
You need Node.js and npm installed on your system to use this client.
Can I use it with other LangChain APIs?
Yes, it is designed to work with LangChain APIs efficiently.