Skip to content
LangChain

totp mcp for LangChain

io.github.mrfentmen/totp-mcp

Generate and verify TOTP codes offline: RFC 6238 with SHA-1/256/512 and fresh base32 secrets

client:LangChain transport:stdio runtime:npm

Install totp mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "totp-mcp": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@mrfentmen/totp-mcp"],
        }
})

tools = await client.get_tools()

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

totp mcp in other clients