Skip to content
LangChain

XActions for LangChain

io.github.nirholas/xactions

X/Twitter automation MCP: scrape, post, schedule, analyze, engage. No API key required.

client:LangChain transport:stdio runtime:npm

Install XActions in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

XActions in other clients