Basic information
About LangChain (TypeScript) MCP Server
Enable LangChain workflows for your MCP client using LangChain (TypeScript). Learn more with resources from LangChain GitHub.
LangChain (TypeScript) is a MCP server in the Ai Ml category listed in the AddMCP.net directory, published by isaacwasserman. It exposes 11 tools, including echo, add, longRunningOperation, printEnv and more. Supported transport: stdio. Runtime: TypeScript. License: SEE LICENSE IN LICENSE. The repository has 35 GitHub stars. Source code is hosted on github.com. Related topics: ai-ml, community, developer-tools.
Setup
{
"mcpServers": {
"server-everything": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-everything"
]
}
}
}
{
"mcpServers": {
"server-everything": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-everything"
]
}
}
}
{
"servers": {
"server-everything": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-everything"
]
}
}
}
LangChain (TypeScript) MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"server-everything": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-everything"
]
}
}
}
LangChain (TypeScript) MCP Server tools
- echo — Echoes back the input
- add — Adds two numbers
- longRunningOperation — Demonstrates a long running operation with progress updates
- printEnv — Prints all environment variables, helpful for debugging MCP server configuration
- sampleLLM — Samples from an LLM using MCP's sampling feature
- getTinyImage — Returns the MCP_TINY_IMAGE
- annotatedMessage — Demonstrates how annotations can be used to provide metadata about content
- getResourceReference — Returns a resource reference that can be used by MCP clients
- getResourceLinks — Returns multiple resource links that reference different types of resources
- structuredContent — Returns structured content along with an output schema for client data validation
- zip — Compresses the provided resource files (mapping of name to URI, which can be a data URI) to a zip file, which it returns as a data URI resource link.
Overview
What is LangChain (TypeScript)?
It is a LangChain.js client for the Model Context Protocol (MCP), ported from the Python library rectalogic/langchain-mcp to the JavaScript/TypeScript ecosystem.
How to use LangChain (TypeScript)?
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.
Key features of LangChain (TypeScript)
- LangChain.js integration for Model Context Protocol tools.
MCPToolkitclass to spawn and manage MCP servers.- Extracts MCP tools as LangChain.js
StructuredToolinstances. - Supports any MCP server runnable via command line.
- Simple initialization and tool retrieval workflow.
Use cases of LangChain (TypeScript)
- Connect a LangChain agent to MCP‑compatible tools (e.g.,
@modelcontextprotocol/server-everything). - Build LangGraph workflows that leverage MCP server resources.
- Port Python‑based MCP‑LangChain integrations to JavaScript/TypeScript projects.
Frequently asked questions
1 What is the relationship to rectalogic/langchain-mcp?
This package is a port of the Python library rectalogic/langchain-mcp to the JavaScript/TypeScript LangChain and MCP APIs.
2 What runtime does it require?
It requires Node.js (implied by npm installation and use of npx to launch MCP servers).
3 How do I obtain LangChain‑compatible tools from an MCP server?
Create an MCPToolkit instance with the server’s command and arguments, call initialize(), then access the tools property.
4 Does it work with any MCP server?
It works with any MCP server that can be launched as a subprocess using a command and args (e.g., @modelcontextprotocol/server-everything).
Videos
Tutorials, guides, and showcases related to LangChain (TypeScript) MCP Server. The player loads when you press play.
Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In