Skip to content
LangChain

jpl horizons mcp for LangChain

io.github.mrfentmen/jpl-horizons-mcp

JPL Horizons: NASA ephemerides for planets, moons, asteroids and comets - keyless.

client:LangChain transport:stdio runtime:npm

Install jpl horizons mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

jpl horizons mcp in other clients