# Dify + Dizo

> Add Dizo as an HTTP MCP server in Dify's Tools page and use its search, email and phone tools in Agent apps, Agent nodes or standalone Tool nodes.

Type: MCP client — server URL `https://mcp.dizo.ai/mcp`. No native app needed.

## Steps
1. In Dify, open **Tools**, switch to the **MCP** tab and add a new HTTP MCP server.
2. Enter the server URL `https://mcp.dizo.ai/mcp`, a name such as Dizo and a server identifier such as `dizo`.
3. Under the advanced options, add a custom header `Authorization` with the value `Bearer dz_live_...`.
4. Save. Dify connects and imports the Dizo tools; add them to an Agent app, an Agent node or a Tool node in a Workflow or Chatflow.

## Where to go
In Dify: Tools → MCP → add an MCP server (HTTP).

Open the Dify MCP tools docs: https://docs.dify.ai/en/cloud/use-dify/workspace/tools#connect-an-mcp-server

## MCP server settings
```
Server URL:         https://mcp.dizo.ai/mcp
Name:               Dizo
Server identifier:  dizo
Custom headers:     Authorization = Bearer dz_live_...
```

## HTTP Request node (REST alternative)
```
Method:          POST
URL:             https://api.dizo.ai/v1/email/find
Authorization:   API Key → Bearer → dz_live_...
Headers:         Idempotency-Key = {{lead_id}}
Body (JSON):
{
  "first_name": "{{first_name}}",
  "last_name": "{{last_name}}",
  "company_domain": "{{domain}}",
  "max_credits": 1
}
Branch on Status Code: 404 = not found (not charged)
```

## Notes
- Apps reference the server by its identifier. If you change the identifier later, re-add the Dizo tools in every app that uses them.
- Use a Tool node when the step is fixed, such as verifying every email, and an Agent node when the model should choose which Dizo tool to call.
- Refreshing the tool list pulls in Dizo's latest tools; review apps that depend on a tool before you refresh.

## Related API docs
- [/docs/search](https://dizo.ai/docs/search.md)
- [/docs/email-find](https://dizo.ai/docs/email-find.md)
- [/docs/keys](https://dizo.ai/docs/keys.md)


## What Dify is and how Dizo fits

Dify is an open-source platform for building LLM applications with a visual editor. You can build chat assistants, Agent apps, and Workflow or Chatflow apps made of nodes such as LLM, Agent, Tool, HTTP Request and conditional branches, then publish them as a web app or an API. Dify can be self-hosted or used as a hosted service, and teams often use it to let non-engineers assemble AI workflows on top of shared tools.

Dify supports MCP servers that use HTTP transport. You register a server once on the Tools page, Dify imports its tools, and from then on every app in the workspace can use them. Dizo's MCP server at `https://mcp.dizo.ai/mcp` fits that model: one registration gives your workspace plain-English search, people and company search, the decision-maker finder, org charts, email and phone finders, enrichment, reverse lookups, and free tools for counting, quoting and budget checks.

## Why connect Dizo to Dify

Dify apps often sit in front of sales and operations teams: a lead-research chatbot, an inbound triage workflow, a list-building pipeline. Those apps need real contact data, and they need it with predictable cost because the people running them may not be watching the bill. Dizo charges per record returned, lookups that find nothing are free, and every tool description includes its credit cost so the model in an Agent node can weigh price as it plans.

Dify also gives you two ways to use the same tools. In an Agent node or Agent app, the model decides which Dizo tool to call. In a Tool node, you pick the tool and its inputs, and it runs the same way every time. Mixing the two is often the right design: let an agent do open-ended research, then run fixed Tool nodes for enrichment and export, where you want no judgment calls.

## What you can build

Some Dify apps that map directly onto Dizo tools:

- A research chatbot for reps: "Who runs IT at this account, and what is their email?" uses `dizo_org_chart` then `dizo_find_email`.
- An inbound Chatflow that takes a form submission email and calls `dizo_email_to_profile` in a Tool node, then routes by seniority.
- A market-sizing assistant that answers "how many?" questions with `dizo_count`, which is free.
- A list-refresh Workflow that iterates over uploaded rows of bounced contacts and calls `dizo_enrich_person` on each, at 2 credits per person matched.
- An account-planning Agent app that uses `dizo_best_contact` to pick one person per target account from a ranked list of titles.
- A company lookup step that turns a website domain into a firmographic profile with `dizo_domain_to_company`.

## Registering the Dizo server

Open the Tools page in Dify and switch to the MCP tab. Add a new HTTP MCP server and fill in three fields: the server URL `https://mcp.dizo.ai/mcp`, a display name such as Dizo, and a server identifier such as `dizo`. The identifier matters more than it looks, because apps reference the server by it. If you change it later, you have to re-add the Dizo tools in every app that uses them, so pick a stable value now.

For authentication, open the advanced options and add a custom header named `Authorization` with the value `Bearer` followed by your Dizo key. Dify also supports OAuth for MCP servers, but a header with a dedicated, capped key is the simplest route for a shared workspace server. Dify's custom headers can also reference incoming request headers, which helps if you publish an app as an API and want callers to supply their own key.

Save the server. Dify connects, authorizes, and imports the Dizo tool list. Request and SSE read timeouts are adjustable in the same settings, but you only need to change them if you see timeout errors on long calls such as large list builds.

## Using the tools in apps

In an Agent app, add the Dizo tools you want the assistant to have, and write instructions that set spending rules: call `dizo_whoami` at the start, size searches with `dizo_count`, quote with `dizo_quote` before anything over about 100 credits, and ask the user before phone lookups. Fewer tools usually means better tool choice, so add only the ones the app needs.

In a Workflow or Chatflow, you can place a Dizo tool as a standalone Tool node or attach tools to an Agent node. Tool nodes take inputs from earlier nodes through Dify's variable references, so a form's email field can flow straight into `dizo_email_to_profile`. If you prefer to call the REST API directly, an HTTP Request node works too: set authorization to API Key with the Bearer type, POST to an endpoint under `https://api.dizo.ai/v1`, and branch on the Status Code output. A `404` from email find means not found and costs nothing.

## Controlling spend

Create a dedicated Dizo key for the Dify workspace, or one per app if you want usage split out. Give it the `data:read` scope, a `max_credits_per_request`, daily and monthly caps, and an endpoint allow-list. The [keys reference](/docs/keys) lists every field, and account-wide caps are under [spend limits](/docs/billing-limits). When any cap is reached, calls return a `402` with a plain-English `fix`, and nothing more is charged.

A worked example: an inbound Chatflow handles 800 form submissions a month. Each runs email to profile, 2 credits only if found. At a 65 percent match rate that is 520 matches and 1,040 credits. Add domain to company for the same 520 at 1 credit each and the month comes to 1,560 credits: $39.00 at the $0.025 pay-as-you-go rate, or $15.60 at the $0.010 top tier. The [pricing page](/pricing) lists every tier.

## Two complete workflows

**Rep research assistant.** An Agent app with five Dizo tools: count, org chart, decision-maker finder, email finder and quote. A rep asks for the security leaders at an account. The agent maps the org chart filtered to security, say 12 people at 1 credit per 25 results, so 0.48 credits, then finds three emails for 3 credits. Each question costs a few cents, and a daily cap on the key bounds the worst day.

**Bounce re-find.** A Workflow takes an uploaded list of 2,000 contacts that bounced, iterates over them, and runs a `dizo_find_email` Tool node on each with the person's name and company. The finder returns a current work email only when it validates, so at a hypothetical 50% hit rate the run costs 1,000 credits, $25 at the entry rate, and the 1,000 misses are free. A conditional node splits found addresses from `404 not_found` rows, sends the found set to the export step and routes the rest to your suppression list. Dizo does not check the original addresses themselves; that job belongs to a dedicated email-verification tool. For very large lists, the Dizo [batch endpoint](/docs/batch) accepts up to 10,000 lookups per job.

## Troubleshooting

If Dify cannot add the server, check the URL and that the header value starts with `Bearer` and a space. A `401` means the key is wrong or revoked. If tools are missing from the imported list, the key's endpoint allow-list may exclude them; call `dizo_whoami`, which is free, to see what the key allows. After Dizo adds tools, refresh the server's tool list in Dify, but review apps first, since removed or changed tools can break apps that use them.

Rate-limit errors from Dizo include `error.retryable` and `error.retry_after`. In an HTTP Request node, use the node's retry settings with a delay rather than retrying immediately, and send an `Idempotency-Key` header on POSTs so a retry within 24 hours is never charged twice.

## Security practices

A workspace MCP server is shared by everyone who can build apps, so treat its key as a shared credential: narrow scope, tight caps, and an allow-list limited to the tools your apps use. Keep phone lookups off the allow-list unless an app truly needs them, since they cost 10 credits per number found. Keep billing write scopes off entirely.

Build and test with a `dz_test_` key, which returns synthetic data and never spends credits, then swap in a live key when the app is ready. [Sign up](/signup) to get a live key.

## FAQ

### Does Dify support remote MCP servers like Dizo?
Yes. Dify supports MCP servers with HTTP transport, added from the MCP tab on the Tools page. Dizo's server at `https://mcp.dizo.ai/mcp` is an HTTP server.

### How do I pass my Dizo key in Dify?
Add a custom header in the server's advanced options: name `Authorization`, value `Bearer` followed by your key. Use a dedicated key with caps for the workspace.

### Should I use an Agent node or a Tool node?
Use an Agent node when the model should decide which Dizo tool to call, such as open-ended research. Use a Tool node for fixed steps like finding every email or enriching every signup, where you want the same call each time.

### Can I call Dizo from Dify without MCP?
Yes. Use an HTTP Request node with API Key Bearer authorization and POST to an endpoint under `https://api.dizo.ai/v1`. Branch on the Status Code output, where a 404 means not found and not charged.

### What happens if I rename the server identifier?
Apps reference the MCP server by its identifier, so renaming it means re-adding the Dizo tools in every app that used the old one. Choose a stable identifier such as `dizo` at the start.

### How do I stop a Dify app from overspending?
Set caps on the Dizo key: per request, per day and per month, plus an endpoint allow-list. When a cap is reached, calls return a 402 and nothing more is charged.
