Skip to content
LangChain

Astral Code for LangChain

io.github.pablitodelg/astral-code

Calculate birth charts, relationship aspects, and Moon phases in English or Spanish.

client:LangChain transport:streamable-http tools:4

Install Astral Code in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "astral-code": {
            "transport": "streamable_http",
            "url": "https://astralcode.app/api/mcp",
        }
})

tools = await client.get_tools()

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

What LangChain can do once it is connected

Astral Code in other clients