LangChain
LangChain: langchain[mcp] turns the aicharged.io tools into LangChain tools through MCPAdapter.
- API key (Bearer)
Client code
Recommendedimport asyncio, os
from fastmcp import Client
from langchain.mcp import MCPAdapter
async def main():
client = Client("https://aicharged.io/api/v1/mcp", auth=os.environ["AICHARGED_API_KEY"])
async with MCPAdapter(client) as adapter:
tools = await adapter.list_tools()
print([tool.name for tool in tools])
asyncio.run(main())
The old langchain-mcp-adapters package is unmaintained; langchain[mcp] builds on the FastMCP client.
Install the package
pip install "langchain[mcp]"