{"repo":"hideya/langchain-mcp-tools-py","free":true,"listed":false,"github":"https://github.com/hideya/langchain-mcp-tools-py","clone":"git clone https://github.com/hideya/langchain-mcp-tools-py.git","description":"MCP to LangChain Tools Conversion Utility / Python","language":"Python","stars":29,"topics":["langchain","langchain-python","mcp","mcp-client","modelcontextprotocol","pyhon","tool-call","tool-calling"],"license":"MIT","category":"mcp-servers","readme_excerpt":"MCP to LangChain Tools Conversion Library / Python A simple, lightweight library to use Model Context Protocol (MCP) server tools from LangChain. Its simplicity and extra features for local MCP servers can make it useful as a basis for your own customizations. However, it only supports text results of tool calls and does not support MCP features other than tools. LangChain's official LangChain MCP Adapters library, which supports comprehensive integration with LangChain, has been released. You might want to consider using it if the extra features that this library supports are not necessary. Prerequisites - Python 3.11+ - [optional] uv ( uvx ) installed to run Python package-based local MCP servers - [optional] npm 7+ ( npx ) to run Node.js package-based local MCP servers Installation Quick Start convert mcp to langchain tools() utility function accepts MCP server configurations that follow the same structure as Claude for Desktop, but only the contents of the mcpServers property, and is expressed as a dict , e.g.: This utility function initializes all specified MCP servers in parallel, and returns LangChain Tools ([ tools: list[BaseTool] ](https://python.langchain.com/api reference/core/tools/langchain core.tools.base.BaseTool.html#langchain core.tools.base.BaseTool)) by gathering available MCP tools from the servers, and by wrapping them into LangChain tools. It also returns an async callback function ( cleanup: McpServerCleanupFn ) to be invoked to close all MCP server ses","default_branch":null,"files":null,"tree":[],"storefront":"/r/hideya","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hideya/langchain-mcp-tools-py/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}