Python · Agent framework

Use OpenRegistry from Haystack

Use OpenRegistry as a Haystack tool inside any Pipeline or Agent built with deepset Haystack.

Haystack ships first-class MCP support via the MCPToolset component. Wire any OpenRegistry tool into a Haystack Pipeline, or expose the full set to a Haystack Agent for autonomous KYC / due-diligence workflows.

Install

pip install haystack-ai mcp-haystack

Minimum working example

from haystack_integrations.tools.mcp import MCPToolset, StreamableHttpServerInfo
from haystack.components.agents import Agent
from haystack.components.generators.chat import AnthropicChatGenerator

toolset = MCPToolset(
    server_info=StreamableHttpServerInfo(url="https://openregistry.sophymarine.com/mcp"),
)

agent = Agent(
    chat_generator=AnthropicChatGenerator(model="claude-3-5-sonnet-latest"),
    tools=toolset,
)

result = agent.run(
    messages=[{"role": "user", "content": "Get the latest accounts for Revolut Ltd (GB, 08804411)."}]
)
print(result["last_message"].text)

What you get

Framework docs

Official MCP integration docs for Haystack:

haystack.deepset.ai — MCP integration ›

Use from a different framework?

OpenRegistry is a Model Context Protocol server. Any MCP client can connect — these are just the most popular agent frameworks.