Skip to content
LangChain

link shortener mcp for LangChain

io.github.mrfentmen/link-shortener-mcp

Shorten and expand URLs with the is.gd public service. No key required.

client:LangChain transport:stdio runtime:npm

Install link shortener mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "link-shortener-mcp": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "link-shortener-mcp"],
        }
})

tools = await client.get_tools()

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

link shortener mcp in other clients