telegraph for LangChain
io.github.telegraphprotocol/telegraph
Decentralized AI inference (weather, deepfake detection, LLMs) with x402 USDC micropayments.
client:LangChain
transport:stdio
runtime:npm
Install telegraph in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"telegraph": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "telegraph-protocol-mcp"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs