# LangChain / LangGraph

Use the official `langchain-mcp-adapters` package to turn DevMotion tools into standard LangChain tools.

MCP Endpoint: `https://devmotion.app/mcp`

## Setup

Install

    pip install langchain-mcp-adapters

Connect and use tools

    from langchain_mcp_adapters.client import MultiServerMCPClient
    from langgraph.prebuilt import create_react_agent

    client = MultiServerMCPClient({
        "devmotion": {
            "transport": "http",
            "url": "https://devmotion.app/mcp",
            "headers": {
                "Authorization": "Bearer YOUR_TOKEN"
            },
        }
    })

    async with client:
        tools = await client.get_tools()
        agent = create_react_agent("anthropic:claude-3-5-sonnet", tools)
        result = await agent.ainvoke({
            "messages": [("user", "Create a 9:16 TikTok intro with a bold title")]
        })

## Authentication

Obtain a long-lived token from your DevMotion profile and pass it in the `Authorization` header as shown above.

## Docs

langchain-mcp-adapters →