{"type":"mcp_client","name":"langchain-mcp-tools-ts-usage","description":"This repository showcases a simple Model Context Protocol (MCP) client using LangChain and TypeScript, demonstrating how to convert MCP server tools into LangChain-compatible tools for use with LLMs like Anthropic's Claude.","category":"AI","language":"TypeScript","stars":12,"forks":2,"owner":"hideya","github_url":"https://github.com/hideya/langchain-mcp-tools-ts-usage","homepage":null,"setup":"## Setup\n\n1.  Install dependencies:\n\n    ```bash\n    npm install\n    ```\n\n2.  Setup API key:\n    ```bash\n    cp .env.template .env\n    ```\n    - Update `.env` as needed.\n    - `.gitignore` is configured to ignore `.env`\n      to prevent accidental commits of the credentials.\n\n3.  Run the app:\n    ```bash\n    npm start\n    ```","tools":"## Available Tools\n\n1.  `convertMcpToLangchainTools()` (Handles parallel initialization of specified multiple MCP servers and converts their available tools into an array of LangChain-compatible tools).\n2.  LangChain ReAct Agent (Demonstrates the use of MCP server tools).\n3.  Anthropic's `claude-3-5-sonnet-latest` (Used as the LLM).\n4.  OpenAI's `gpt-4o` (Code is included and commented out for potential use).","faq":null,"created_at":"2025-01-06T05:44:45+00:00","updated_at":"2025-03-28T22:25:26+00:00","source_url":"https://model-context-protocol.com/clients/langchain-typescript-mcp-client-example","related_articles":[]}