Adapter for converting LangChain tools to FastMCP tools
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"langchain-to-mcp-tool-adapter","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# LangChain to MCP Tool Adapter [](https://badge.fury.io/py/langchain-to-mcp-tool-adapter) [](https://opensource.org/licenses/MIT) A Python package for converting LangChain tools to FastMCP tools, making it easy to use your existing LangChain tools with Anthropic's MCP server. ## Why Use This Package? - **Simpler Implementation**: While LangChain offers an MCP-to-LangChain adapter, it requires a running MCP server either remotely or co-located with an agent, which can be finicky. LangChain tools have a simpler implementation and are more lightweight. - **Use in Multiple Environments**: When creating tools (especially for open source), you might want to make them available in both LangChain and MCP implementations without duplicating code. - **Handle Artifacts Properly**: Automatic conversion between LangChain's `content_and_artifact` format and MCP's content format for images, PDFs, and other binary data. - **Preserve Metadata**: Tool descriptions, argument schemas, and other metadata are preserved during conversion. ## Installation ```bash pip install langchain-to-mcp-tool-adapter ``` ## Quick Start ```python from mcp.server import FastMCP from langchain.tools import Tool from langchain_to_mcp_tool_adapter import add_langchain_tool_to_server # Create a LangChain tool def multiply(a: int, b: int) -> int: """Multiply two numbers.""" return a * b calculator_tool = Tool( name="calculator", description="Multiply two numbers together", func=multiply ) # Create a FastMCP server and add the tool server = FastMCP() add_langchain_tool_to_server(server, calculator_tool) # Run the server server.run() ``` ## Working with Argument Schemas ### Type Annotations ```python from typing import Annotated, List from langchain.tools import tool @tool("multiplication-tool") def multiply_type_annotation( a: A…
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.