LangChain (TypeScript)

LangChain (TypeScript)

isaacwasserman

A TypeScript client that lets you use any MCP server tools directly within LangChain.js workflows and agents.

Enable LangChain workflows for your MCP client.

35665 views4Local (stdio)

What it does

  • Connect MCP servers to LangChain.js agents
  • Convert MCP tools to LangChain-compatible format
  • Execute MCP server operations from TypeScript
  • Handle long-running operations with progress updates
  • Sample from LLMs using MCP's sampling feature
  • Access and manipulate MCP resources

Best for

Building LangChain agents with MCP tool accessTypeScript developers integrating MCP serversCreating AI workflows that need diverse tool capabilities
Works with any MCP serverNative LangChain.js integration10+ example tools included

About LangChain (TypeScript)

LangChain (TypeScript) is a community-built MCP server published by isaacwasserman that provides AI assistants with tools and capabilities via the Model Context Protocol. Enable LangChain workflows for your MCP client using LangChain (TypeScript). Learn more with resources from LangChain Gi It is categorized under ai ml, developer tools. This server exposes 11 tools that AI clients can invoke during conversations and coding sessions.

How to install

You can install LangChain (TypeScript) in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

License

LangChain (TypeScript) is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

Tools (11)

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

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 });

Alternatives

Related Skills

Browse all skills
cli-builder

Guide for building TypeScript CLIs with Bun. Use when creating command-line tools, adding subcommands to existing CLIs, or building developer tooling. Covers argument parsing, subcommand patterns, output formatting, and distribution.

3
mcp-developer

Use when building MCP servers or clients that connect AI systems with external tools and data sources. Invoke for MCP protocol compliance, TypeScript/Python SDKs, resource providers, tool functions.

1
ccxt-typescript

CCXT cryptocurrency exchange library for TypeScript and JavaScript developers (Node.js and browser). Covers both REST API (standard) and WebSocket API (real-time). Helps install CCXT, connect to exchanges, fetch market data, place orders, stream live tickers/orderbooks, handle authentication, and manage errors. Use when working with crypto exchanges in TypeScript/JavaScript projects, trading bots, arbitrage systems, or portfolio management tools. Includes both REST and WebSocket examples.

1
ydc-claude-agent-sdk-integration

Integrate Claude Agent SDK with You.com HTTP MCP server for Python and TypeScript. Use when developer mentions Claude Agent SDK, Anthropic Agent SDK, or integrating Claude with MCP tools.

0
mcp-builder

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

103
ui-design-system

UI design system toolkit for Senior UI Designer including design token generation, component documentation, responsive design calculations, and developer handoff tools. Use for creating design systems, maintaining visual consistency, and facilitating design-dev collaboration.

18