Feedback

MCP Tools Usage From LangChain / Example in TypeScript

@hideya Claim

Basic information

Runtime
node
Category
License
MIT license
Author
hideya
Submitted by
Community
Quality
50
Stars
12

About MCP Tools Usage From LangChain / Example in TypeScript

MCP Tools Usage From LangChain ReAct Agent / Example in TypeScript

MCP Tools Usage From LangChain / Example in TypeScript is a MCP client in the Agent Framework category listed in the AddMCP.net directory, published by hideya. Runtime: node. License: MIT license. The repository has 12 GitHub stars. Source code is hosted on github.com. Related topics: langchain, langchain-typescript, mcp, mcp-client, modelcontextprotocol.

MCP Tools Usage From LangChain / Example in TypeScript config

No standard config provided

This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.

Repository

MCP Tools Usage From LangChain / Example in TypeScript tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is MCP Tools Usage From LangChain / Example in TypeScript?

This is a command-line Model Context Protocol (MCP) client built with TypeScript that demonstrates how to use MCP server tools via LangChain’s ReAct Agent. It runs on Node.js 16+ and is intended for developers integrating MCP with LangChain.

How to use MCP Tools Usage From LangChain / Example in TypeScript?

Clone the repository, install dependencies with npm install, copy .env.template to .env and add your Anthropic (or OpenAI) API key, then run npm start. Optionally install uv to support Python-based MCP servers.

Key features of MCP Tools Usage From LangChain / Example in TypeScript

  • Demonstrates MCP tool usage with LangChain ReAct Agent
  • Parallel initialization of multiple MCP servers
  • Converts MCP tools to LangChain‑compatible StructuredTool[]
  • Uses Anthropic Claude 3.5 Sonnet by default
  • Includes commented‑out support for OpenAI GPT‑4o
  • Provides sample OAuth authentication for SSE connections

MCP Tools Usage From LangChain / Example in TypeScript tools

What LLMs does it support?

It uses Anthropic’s claude-3-5-sonnet-latest by default. Code for OpenAI’s gpt-4o is included but commented out.

How do I add my own MCP servers?

You modify the server configuration in the source code; the convertMcpToLangchainTools utility handles parallel initialization and tool conversion.

Does it support Python‑based MCP servers?

Yes, if you have uv (or uvx) installed, you can run Python‑based MCP servers alongside Node‑based ones.

What license is it under?

This project is released under the MIT License.

Do I need a paid API key to run it?

Yes, you need an API key from either Anthropic or OpenAI. Usage of those APIs may incur costs depending on your plan.

Use cases of MCP Tools Usage From LangChain / Example in TypeScript

  • Learn how to integrate MCP servers into LangChain‑based agents
  • Prototype and test combinations of MCP tools in a TypeScript environment
  • Explore OAuth authentication for MCP servers over SSE
  • Serve as a foundation for building production MCP clients using LangChain

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬