For the complete documentation index, see llms.txt. This page is also available as Markdown.

LangChain

Connect LangChain workflows to Data Product MCP for governed tools.

Connecting Data Product MCP to a LangChain agent lets it answer from governed products instead of guessing. The langchain-mcp-adapters package registers DataOS tools so your agent works with trusted, authorized data. See the LangChain MCP documentation for adapter setup and transports.

Prerequisites

Python 3.9 or later, your DataOS instance URL, and a DataOS API token.

Connect

  1. Install the adapter:

pip install langchain-mcp-adapters
  1. Following the LangChain MCP docs, initialize an MCP client over HTTP transport with these DataOS values:

Parameter
Value

Transport

http

URL

https://<instance-url>/dataproduct-mcp/api/v1

Header key

apikey

Header value

Your DataOS API token

Verify

Run the script and confirm get_tools() returns Data Product MCP tools. Then ask the agent What data products am I authorized to access?. A working connection returns products scoped to your token.

Last updated

Was this helpful?