/mcp
on LangGraph Server.
langgraph-api >= 0.2.3
langgraph-sdk >= 0.1.61
Note
Replace serverUrl
with your LangGraph server URL and configure authentication headers as needed.
langgraph.json
:
AnyMessage
, which supports many message types but is too general for direct LLM exposure.
Instead, define custom agents or workflows that use explicitly typed input and output structures.
For example, a workflow answering documentation questions might look like this:
langgraph_auth_user
object, making it accessible through configurable context for every node in your graph.streamable_http
and sse
transport
servers./mcp
request is stateless and independent.
/mcp
endpoint uses the same authentication as the rest of the LangGraph API. Refer to the authentication guide for setup details.
disable_mcp
to true
in your langgraph.json
configuration file:
/mcp
endpoint.