Skip to content
LangChain

Hacker News MCP Server and API by Cotlet for LangChain

dev.cotlet/hacker-news

Hacker News tech news and discussion MCP server: list upvoted items, list hidden items.

client:LangChain transport:streamable-http

Install Hacker News MCP Server and API by Cotlet in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "hacker-news": {
            "transport": "streamable_http",
            "url": "https://cotlet.dev/mcp/v1/hacker-news/connect",
        }
})

tools = await client.get_tools()

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

Hacker News MCP Server and API by Cotlet in other clients