What Dify is, and the two doors into it
Dify describes itself as an open-source platform for building AI applications. You create agents, agentic workflows and chatbots, then publish them as web apps or reach them through an API. It runs as a hosted cloud service and as a self-hosted edition.
For outside data, Dify gives you two doors. The first is tools, which an agent can decide to call. Dify's docs say MCP servers can be added as tool providers, and that their tools can then be used in Agent apps, inside Agent nodes, or as standalone Tool nodes in a workflow. The second door is the HTTP Request node, a fixed workflow step that sends a request you define.
SimilarIQ has no native Dify integration: no plugin, no marketplace entry. Both doors still work, because SimilarIQ runs a hosted MCP server and a plain REST API.
Why connect them
Dify apps often automate research: a form takes a company, a workflow gathers context, a model writes the output. The weak step is usually "find similar companies". A model on its own names a few familiar brands and stops.
SimilarIQ fills that step with a ranked list. One domain in, up to 100 companies out, each with a matchScore from 0 to 100, a relationship type (Direct, Indirect, Adjacent or Emerging), a confidence score and a likelyCompetitor flag. The engine runs a fresh research pass per search and cross-validates across multiple independent intelligence sources.
Because the output is structured JSON, later Dify nodes can filter it, loop over it or pass it to a model with a narrow instruction. It contains no contacts or firmographics, so plan a separate step if your app needs those.
Setup walkthrough: add the MCP server
Dify's current docs place MCP servers under Integrations, then Tools, then the MCP tab. Menu names change between Dify releases and between cloud and self-hosted editions, so if your screen differs, look for the MCP section of the tools area.
Adding a server takes three values according to the docs: the server URL, a name, and a unique server identifier. Use https://similariq.ai/mcp for the URL. Dify's docs say the identifier allows lowercase letters, numbers, underscores and hyphens up to 24 characters, so similariq fits. Choose it carefully. Apps reference a server by that identifier, and the docs warn that changing it later breaks the tools in every app that used the old one.
For authentication you have two documented options. Dify turns on Dynamic Client Registration by default and tries to obtain OAuth credentials automatically; SimilarIQ's server supports OAuth 2.1, so you may be sent to a SimilarIQ sign-in and consent screen. The other option is Custom Headers, which Dify says are sent with each request and are commonly used for static API keys. Add a header named X-API-Key with your sk-live- key. For a shared workspace or an app that runs unattended, the header is the more predictable choice.
The docs state that only MCP servers with HTTP transport are supported, which is what SimilarIQ offers. Once connected, Dify imports the server's tools. Add them to an Agent app, select them in an Agent node, or drop one in as a Tool node.
Setup walkthrough: the HTTP Request node
If you want a deterministic step with no model choosing tools, use the HTTP Request node. Set the method to POST and the URL to https://similariq.ai/api/v1/search. Choose a JSON body and enter {"domain":"stripe.com","limit":100}, replacing the domain with a variable from an earlier node. Dify's docs show variables inserted with double curly braces.
For authentication, Dify's node documents an API Key option with three subtypes: Basic, Bearer and Custom. Bearer adds an Authorization header with a bearer token, which SimilarIQ accepts. Custom lets you name the header yourself, so you can send X-API-Key. Store the key as a secret environment variable; the docs say secret values are masked in run logs and in the node's request log.
The node outputs the response body, the status code and the headers. Branch on the status code: 200 continues, 402 means the balance is empty, and 502 means the search failed and the credit was refunded, so a retry is safe. Dify documents a retry setting on this node, up to ten attempts with a configurable interval. Retrying a 502 is reasonable. Do not auto-retry a 402.
Timeouts: check them before you ship
A SimilarIQ search takes roughly 30 to 60 seconds because it is fresh research, not a cache lookup. Both Dify routes have timeout settings, and the docs checked for this page do not state their default values.
On the MCP server form, Dify describes a request timeout and an SSE read timeout, and advises raising them when a server is slow or returns long-running streamed results. On the HTTP Request node, connect, read and write timeouts are configurable. In both places, open the setting and make sure the read side allows at least 120 seconds. Self-hosted installations can also impose their own limits through deployment configuration, which this page did not verify.
If a call times out on Dify's side after SimilarIQ has finished, the result is not lost. It is saved in your search history and can be fetched again for free with get_search_results or GET /api/searches/:id.
Example prompts and tasks
With the MCP tools attached to an agent, these requests work as written.
- "Find look-alikes for notion.so and show the top 20." Uses
find_similar_companies. - "Before searching, tell me the remaining balance." Uses
get_search_balance, free. - "Did we already research hubspot.com? Reuse it if so." Uses
list_recent_searchesandget_search_results. - "Keep only Direct and Indirect companies with confidence above 70." Filtering by the model, no extra call.
- "Start a bulk run on the domains in this upload." Uses
start_bulk_search, thenget_bulk_job. - "Save the first three to the watchlist." Uses
save_company. - "Create a share link for this search so the client can view it." Uses
create_share_link.
Controlling spend
Two SimilarIQ tools cost credits: a search is one credit and a bulk job is one credit per domain. The remaining eight tools are free. In Dify you choose which imported tools an agent can use, so a read-only assistant can be given history, results and balance tools and nothing that spends.
Dify's classic Agent node has a Max Iterations setting that the docs describe as a safety limit against infinite loops. Keep it low for simple lookups. An agent that can iterate fifteen times can, in the worst case, search fifteen times, which is $3.75.
The account-level limits sit in SimilarIQ, not Dify. With auto-refill off, an empty balance stops everything with a 402. With auto-refill on, your monthly cap is the hard ceiling. See spend controls. Typical costs: 20 searches for $5.00, 200 for $50, 1,000 for $250.
Workflows to build in Dify
Look-alike form app. A workflow with a start form that takes a domain, an HTTP Request node that calls the search endpoint, a code or template step that keeps results above a match score threshold, and a model node that writes a short summary of the top ten. Publish it as a web app for your sales team. Each run costs $0.25.
Research chatbot with memory of past work. An Agent app with the SimilarIQ MCP tools. Instruct it to check list_recent_searches before any new search. Reps ask about accounts in plain language, and repeat questions are answered from saved results at no cost. This is the account research pattern in chat form.
Batch pipeline. A workflow that accepts a list of domains, starts one bulk job, polls it, and hands the combined CSV to the next system. A file of 500 domains costs $125. For CRM loads, SimilarIQ's app can also export CSVs shaped for Salesforce Accounts and HubSpot Companies, described under CRM export.
Troubleshooting and security
Tools missing after you connect: use Dify's option to update the tool list, and confirm the URL has no trailing path beyond /mcp. A 401 means the header name or key is wrong. A 429 means the rate limiter is smoothing a burst; add a delay between calls in loops.
Dify's docs note that exported apps reference MCP servers by identifier, so moving an app to another workspace means recreating the server there with the same identifier. They also warn that refreshing the tool list can break an app if a tool it used has changed.
For security, keep the key in a secret variable or the MCP header field and never in a prompt. Use a separate key for each Dify workspace so you can revoke one alone. Treat returned company names as data from the open web, not as instructions for your agent.
Frequently asked questions
Is there a SimilarIQ plugin in the Dify marketplace?
No. SimilarIQ has no Dify plugin or marketplace listing. You connect by adding its hosted MCP server as an MCP tool provider, or by calling the REST API from an HTTP Request node.
Can Dify connect to a remote MCP server?
Yes. Dify's docs say MCP servers with HTTP transport can be added as tool providers, with OAuth or custom headers for authentication. SimilarIQ's server is hosted over streamable HTTP, so nothing needs to be installed.
Should I use the MCP tools or the HTTP Request node?
Use MCP tools when an agent should decide when to search, reuse history or save companies. Use the HTTP Request node when the step is fixed and you want the same call every run with explicit error branches.
Why does my Dify workflow time out on a SimilarIQ search?
A search takes roughly 30 to 60 seconds. Raise the read timeout on the HTTP Request node, or the request and SSE read timeouts on the MCP server, to at least 120 seconds. Dify's docs do not list the defaults, so check the values in your workspace.
What does each Dify run cost in SimilarIQ credits?
One credit, $0.25, per search regardless of the limit you set, and one credit per domain for bulk jobs. Reading history, past results and the balance is free. Failed searches return a 502 and the credit is refunded automatically.
Does this work with self-hosted Dify?
The SimilarIQ endpoints are public HTTPS, so a self-hosted Dify instance with outbound internet access can reach them. Menu paths and timeout limits can differ from Dify Cloud, so verify them in your own deployment.