LangChain (TypeScript)
About
Enable LangChain workflows for your MCP client.
Details
- Author
- isaacwasserman
- Repository
- isaacwasserman/mcp-langchain-ts-client
- GitHub stars
- 35
- Downloads
- 2,078
- Categories
- Productivity, Developer Tools, Design, AI, Community, Communication
- Tags
- #integration
Jump to
- LangChain.js integration for Model Context Protocol tools.
- MCPToolkit class to spawn and manage MCP servers.
- Extracts MCP tools as LangChain.js StructuredTool instances.
- Supports any MCP server runnable via command line.
- Simple initialization and tool retrieval workflow.
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
LangChain (TypeScript)Command (node, npx, python, etc.)npxArguments-
Argument 1
-y -
Argument 2
@highlight/mcp-server
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install via npm install mcp-langchain-ts-client. Create an MCPToolkit instance with server parameters (command and args), call await toolkit.initialize(), then access toolkit.tools to retrieve LangChain.js‑compatible tools. The tools can be passed directly to LangChain agents, for example using createReactAgent from @langchain/langgraph/prebuilt.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"langchain (typescript)": {
"env": {},
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
}
}
Linux
{
"env": [],
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
Macos
{
"env": [],
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
Windows
{
"env": [],
"args": [
"/c",
"npx",
"-y",
"@highlight/mcp-server"
],
"command": "cmd"
}
mcp-langchain-ts-client
A LangChain.js client for Model Context Protocol.
This is a port of rectalogic/langchain-mcp to the JS/TS LangChain and MCP APIs.
Installation
npm install mcp-langchain-ts-client
Usage
const serverParams = {
command: "npx",
args: [
"-y",
"@modelcontextprotocol/server-everything"
]
}
// Initialize the toolkit
const toolkit = new MCPToolkit(serverParams);
await toolkit.initialize();
// Extract LangChain.js compatible tools
const tools = toolkit.tools;
// Use the tools
import { createReactAgent } from "@langchain/langgraph/prebuilt";
import { ChatAnthropic } from "@langchain/anthropic";
const llm = new ChatAnthropic({ model: 'claude-3-5-sonnet-20241022' });
const agent = createReactAgent({ llm, tools });
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





