Now open. Sign up with a work email and get 250 free credits, no card. Get your free API key →
FOR AGENTSSkip the HTML: this page as .md · llms.txt · openapi.json · MCP mcp.dizo.ai/mcp
Integrations / Agent frameworks
// mcp client

Dizo + Microsoft AutoGen

Connect AutoGen AgentChat agents to the Dizo MCP server with StreamableHttpServerParams and McpWorkbench, or load the tools as a list.

No native app needed. This uses the hosted Dizo MCP server at https://mcp.dizo.ai/mcp. Use a dz_test_ key while you build: it returns synthetic data and costs nothing.
Official setup guide

StreamableHttpServerParams and mcp_server_tools in autogen_ext.

https://microsoft.github.io/autogen/stable/reference/python/autogen_ext.tools.mcp.html#autogen_ext.tools.mcp.StreamableHttpMcpToolAdapter

Steps

  1. pip install -U "autogen-agentchat" "autogen-ext[mcp,openai]" and export DIZO_API_KEY.
  2. Build StreamableHttpServerParams with the Dizo URL and an Authorization header.
  3. Open an McpWorkbench with those params and pass it to AssistantAgent(workbench=...).
  4. Run the agent, or use mcp_server_tools(params) to get a plain tool list instead.
import asyncio, os
from autogen_agentchat.agents import AssistantAgent
from autogen_agentchat.ui import Console
from autogen_ext.models.openai import OpenAIChatCompletionClient
from autogen_ext.tools.mcp import McpWorkbench, StreamableHttpServerParams

async def main():
    params = StreamableHttpServerParams(
        url="https://mcp.dizo.ai/mcp",
        headers={"Authorization": f"Bearer {os.environ['DIZO_API_KEY']}"},
        timeout=30.0,
    )
    async with McpWorkbench(params) as dizo:
        agent = AssistantAgent(
            name="prospector",
            model_client=OpenAIChatCompletionClient(model="gpt-4o"),
            workbench=dizo,
            system_message="Count first. Call dizo_quote before any job over 100 credits.",
        )
        await Console(agent.run_stream(task="Find 10 heads of procurement at US manufacturers with 500+ employees, with emails"))

asyncio.run(main())
from autogen_ext.tools.mcp import StreamableHttpServerParams, mcp_server_tools

tools = await mcp_server_tools(StreamableHttpServerParams(
    url="https://mcp.dizo.ai/mcp",
    headers={"Authorization": f"Bearer {os.environ['DIZO_API_KEY']}"},
))
agent = AssistantAgent(name="researcher", model_client=model_client, tools=tools)

Notes

Endpoints used

What AutoGen is

AutoGen is Microsoft's open-source framework for building agents and multi-agent systems. Its AgentChat layer gives you ready-made agents such as AssistantAgent, plus team patterns where several agents take turns on a task. The extensions package, autogen-ext, holds the integrations: model clients for different providers, code executors and, the part that matters here, MCP support in autogen_ext.tools.mcp.

That module can connect to an MCP server over stdio, SSE or streamable HTTP. For a hosted server you use StreamableHttpServerParams, which takes a url, optional headers and timeouts. You then either open an McpWorkbench, which manages the session and exposes the server's tools to an agent, or call mcp_server_tools() to get a list of tool adapters. Dizo's server at https://mcp.dizo.ai/mcp speaks streamable HTTP, so it plugs straight in.

Why AutoGen agents need Dizo

Multi-agent setups shine on research-heavy work: one agent gathers facts, another reasons over them, a third writes. In sales and recruiting that research is mostly about real people and companies, and a model alone cannot supply current titles, verified emails or headcount. Dizo provides them through a hosted MCP server: 850M professional profiles, 100M+ websites and companies, 800M verified emails and 550M mobiles and direct dials.

AutoGen's design makes cost control easier than in a single-agent loop. You decide which agent holds the Dizo tools, so you can keep paid lookups in one place, while other agents work only with what that researcher returns. Each Dizo tool description carries its credit cost, and lookups that find nothing are free, so a researcher agent that tries three spellings of a name pays only for the one that hits.

What you can ask an AutoGen agent to do

With the Dizo workbench attached, an AssistantAgent can handle requests like these:

  • "How many heads of procurement work at US manufacturers with 500+ employees?" Free with dizo_count.
  • "Find ten of them with emails." dizo_search for the people, then dizo_find_email at 1 credit per address found.
  • "For these 40 accounts, find the COO, falling back to VP Operations." dizo_best_contact with a ranked title list, 1 credit per 25 people returned.
  • "What does this company do and how big is it?" dizo_domain_to_company, 1 credit if the domain is known.
  • "Who sent us this lead?" dizo_email_to_profile, 2 credits only when matched.
  • "Show me the engineering leadership at this account." dizo_org_chart filtered by department and seniority.
  • "What will this cost, and how much budget is left?" dizo_quote and dizo_whoami, both free.

Setup walkthrough

Install AgentChat and the extensions with the MCP and OpenAI extras: pip install -U "autogen-agentchat" "autogen-ext[mcp,openai]". The MCP extra is what pulls in autogen_ext.tools.mcp. If you use a different model provider, install its extra instead of OpenAI; the Dizo connection does not change. Export your key as DIZO_API_KEY.

Create the connection parameters with StreamableHttpServerParams(url="https://mcp.dizo.ai/mcp", headers={"Authorization": f"Bearer ..."}). The class also accepts timeout, which defaults to 30 seconds, and sse_read_timeout. Then open an McpWorkbench(params) as an async context manager. Inside the block, pass it to AssistantAgent with workbench=dizo. The agent lists the tools on startup and calls them as it reasons.

If you would rather work with a plain list, await mcp_server_tools(params) returns tool adapters you can pass as tools=. The workbench route is tidier for long runs because it holds one session for the whole block. Either way, run the agent with agent.run_stream(task=...) and the Console UI to watch each tool call. Sign up for a live key, with 250 free credits on a work email, and dz_test_ keys return synthetic data today.

Designing a team around paid tools

The most useful AutoGen pattern for Dizo is a narrow researcher. Give one AssistantAgent the Dizo workbench and a system message about budget. Give the strategist, writer and critic no data tools at all. In a team such as a round-robin group chat, they ask the researcher for facts, and every credit spent is traceable to one agent and one key.

That structure also stops a common failure in multi-agent chats: two agents independently looking up the same person. Have the researcher post results in a consistent format, such as a short table of name, title, domain and email status, and tell the other agents to reuse it. Add your current customers and open opportunities to the free suppression list so the researcher never pays to rediscover accounts you already own.

Termination matters too. Set a clear stop condition for the team, such as a maximum number of messages, so a disagreement between agents does not keep the researcher searching. Dizo's own caps are the backstop, but a good stop condition keeps runs short and readable.

Controlling spend

On the Dizo side, create a key just for the researcher agent. Give it a maximum credits per request, a daily cap, a monthly cap and an endpoint allow-list. A key allowed only /v1/search, /v1/count, /v1/people/best-match and /v1/email/find can prospect and find emails but cannot buy phone numbers at 10 credits each. The account-wide monthly USD cap sits above all keys and returns 402 monthly_cap_reached when hit, with alerts at 50%, 80% and 100%.

In the agent, put the rules in the system message: count first, quote anything over 100 credits with dizo_quote, and stop if dizo_balance shows the month is near its cap. On REST calls you can also send max_credits and "dry_run": true on any billable endpoint. Rates by tier are on pricing.

Rehearsing the team on a test key

Multi-agent runs are hard to predict from reading the code, so rehearse the whole team before a live key is involved. Set DIZO_API_KEY to a dz_test_ key and run the same task you plan to run in production. Test keys return synthetic data and never spend credits, so the names will be fake, but the tool calls, their order and their count are real.

Read the transcript for three things. First, how many times the researcher called a paid tool, and whether any call repeated an earlier one. Second, whether it called dizo_count before searching and dizo_quote before anything large, as the system message asks. Third, whether the team stopped when the task was done or kept talking until the message limit.

Then estimate the live cost from the transcript. If the rehearsal shows one search returning 50 people followed by 50 email lookups, the live run costs at most 2 credits for the search plus 50 for emails: 52 credits, or $1.30 at the $0.025 rate. Set the per-request and daily caps on the researcher key a little above that figure, and a runaway run stops at the cap instead of at your balance.

Example workflows

Account plan for 40 targets. The researcher calls dizo_best_contact with 40 domains and the titles COO, VP Operations and Head of Operations, plus include: ["email"]. If it returns one person for 38 of the accounts, the 38 people cost 1.52 credits (0.04 each) and the emails cost 1 credit each when found. With 33 addresses found, the total is 34.52 credits, under $1 at the pay-as-you-go rate. The writer agent then drafts one message per account.

Inbound qualification. A triage agent receives new sign-up emails, the researcher calls dizo_email_to_profile on each (2 credits per match), and a scoring agent compares title, seniority and company size against your profile. Ten sign-ups with eight matches cost 16 credits.

Competitive account sweep. The researcher runs dizo_company_search with a technology filter for companies using a competitor's product in your region, 1 credit per 25 results, then hands 100 domains to the strategist. That list costs 4 credits.

Troubleshooting

If the agent starts with no Dizo tools, check that the async with McpWorkbench(...) block is still open when the agent runs, and that the URL is exactly https://mcp.dizo.ai/mcp. A 401 response means the header is missing or the key is wrong; confirm it starts with Bearer . Timeouts on slow networks can be raised with the timeout parameter.

If the agent calls the wrong tool, for example a search when you wanted a count, tighten the system message and name the tools it should prefer. Tool descriptions already explain what each one does and costs, but an explicit order such as count, then quote, then search gives the model less to guess. You can also watch each call in the Console output and see the arguments it sent.

A 402 from a tool means a cap was reached at the request, key or account level; the error includes a plain-English fix. Rate-limit errors mean too many parallel calls on one key. For hundreds of lookups, call the REST batch endpoint from ordinary code instead of letting agents fan out.

Security practices

AutoGen's own docs advise connecting only to trusted MCP servers. Beyond that, keep the Dizo key in the environment or a secrets manager, never in a notebook or committed config. Use one key per agent role so you can see spend per role and revoke one without breaking the others.

Keep dz_test_ keys for development and automated tests, where synthetic data is fine and no credits move. Live keys belong only in production. Dizo returns business-context data only and honours opt-outs within 24 hours; see the trust page for how data is handled.

Frequently asked questions

Which AutoGen package contains MCP support?

autogen-ext with the mcp extra, in the autogen_ext.tools.mcp module. Install it alongside autogen-agentchat for AssistantAgent.

Should I use McpWorkbench or mcp_server_tools?

McpWorkbench holds one session open for the block and is passed with workbench=. mcp_server_tools returns a list for tools=. Both connect to Dizo the same way through StreamableHttpServerParams.

How do I authenticate AutoGen with Dizo?

Pass headers={"Authorization": "Bearer " plus your key} to StreamableHttpServerParams, reading the key from an environment variable. Each key can carry its own caps and endpoint allow-list.

Should every agent in my team get the Dizo tools?

Usually not. Give them to one researcher agent with its own key and caps, and let the others work from its results. That keeps spend in one place and avoids duplicate lookups.

What does a failed lookup cost?

Nothing. Email, phone and profile lookups charge only when data is found, and searches charge only for results returned.

Is there a Dizo extension for AutoGen?

No. AutoGen's built-in MCP support connects to the Dizo MCP server directly, so there is no extra package to install.

Last reviewed 2026-11-30.

Related integrations