Skip to content
LangChain

token safety check for LangChain

io.github.lx1112/token-safety-check

Rug check tokens on Base, Ethereum, Arbitrum, Optimism, Polygon, Solana: 0-100 risk score + reasons

client:LangChain transport:stdio runtime:npm

Install token safety check in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "token-safety-check": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "token-safety-check"],
        }
})

tools = await client.get_tools()

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

token safety check in other clients