Use DataXAPI in Dify: the MCP server in 4 fields

Give Dify public data from 21 platforms. Fill in 4 fields once: 5 tools, 224 endpoints, from $0.0003 a call, and a failed call is never charged. Can Dify read Xiaohongshu and Douyin? Yes: once connected it reads their public data itself, in three steps.

Sign up for the free trial
MCP addresshttps://api.dataxapi.com/mcp
  • A remote address: nothing to deploy, no platform account to sign in to
  • Give the key a daily and a monthly spending limit; your AI cannot go past it
  • Every call is in the console's call log, its source marked MCP
The address Dify connects to: One address and one header: your API key as a bearer token.
Difyconnected to DataXAPI
List the DataXAPI tools.

DataXAPI is connected with 5 tools: find finds the endpoint for a question, describe shows its parameters and price, call runs it (the only one that is charged), read_more re-reads a result for 24 hours, and account shows your balance. The catalog has 224 endpoints on 21 platforms.

0 calls charged$0.0000

Check it works. Ask it to list the tools. This is the reply to expect; none of it costs anything.

Setup
4 fieldstyped into the client once
Where it is kept
In the clientthe client keeps the key you type in
Tools
5 toolsonly call is charged
Transport
Streamable HTTPone address, one header

Connected in three steps

No code to write

Sign up and get a key

Sign in with a 6-digit code sent to your email, or with Google. Free trial on sign-up: up to 333 calls at $0.0003. No card.

dx_…shown in full once, when it is made
Sign up free

Send this to your AI

It reads the setup page and connects the MCP server itself. Put your own key where it says dx_….

Read https://dataxapi.com/agents.md and set up DataXAPI in this agent. My API key is dx_…; use it for every DataXAPI call.

Just ask

Your AI runs the endpoint it needs with call, looking it up with find first when it is not sure, and answers with links. Every call is in the console's call log.

“What has @nasa posted on TikTok lately?”
More questions

Set it up

Three steps inside Dify. Written from the client's own documentation.

Endpoint
https://api.dataxapi.com/mcp
Header
Authorization: Bearer dx_…
Transport
Streamable HTTP
Authentication
API key, as a bearer token
Server
api.dataxapi.com/mcp
What an agent reads to set itself up →
DifyIntegrations → Tools → MCP → add an MCP server (HTTP)
1

Open the place MCP servers are added

Integrations → Tools → MCP → add an MCP server (HTTP)

2

Fill in the fields

Each as written here. The key is typed into the client and kept by it.

FieldValue
URLhttps://api.dataxapi.com/mcp
NameDataXAPI
Server Identifierdataxapi
Advanced Options → Custom HeadersAuthorization: Bearer, a space, and your API key
3

Save, then ask it to list the tools

You should get the five below.

Claude Code1 command · ~/.claude.json
1

Put your key in the environment

Claude Code reads it from there. Add the line to your shell profile to keep it.

export DATAXAPI_API_KEY="dx_…"
2

Add the server

One command, or the same entry written into ~/.claude.json.

dataxapi setup --client claude-code
{
  "mcpServers": {
    "dataxapi": {
      "type": "http",
      "url": "https://api.dataxapi.com/mcp",
      "headers": {
        "Authorization": "Bearer ${DATAXAPI_API_KEY}"
      }
    }
  }
}
3

Restart Claude Code

Then ask it to list the DataXAPI tools. You should get the five below.

5 tools · only call is chargedSetup steps for Claude Code →

Cursor1 command · ~/.cursor/mcp.json
1

Put your key in the environment

Cursor reads it from there. Add the line to your shell profile to keep it.

export DATAXAPI_API_KEY="dx_…"
2

Add the server

One command, or the same entry written into ~/.cursor/mcp.json.

dataxapi setup --client cursor
{
  "mcpServers": {
    "dataxapi": {
      "url": "https://api.dataxapi.com/mcp",
      "headers": {
        "Authorization": "Bearer ${env:DATAXAPI_API_KEY}"
      }
    }
  }
}
3

Restart Cursor

Then ask it to list the DataXAPI tools. You should get the five below.

5 tools · only call is chargedSetup steps for Cursor →

Codex1 command · ~/.codex/config.toml
1

Put your key in the environment

Codex reads it from there. Add the line to your shell profile to keep it.

export DATAXAPI_API_KEY="dx_…"
2

Add the server

One command, or the same entry written into ~/.codex/config.toml.

dataxapi setup --client codex
[mcp_servers.dataxapi]
url = "https://api.dataxapi.com/mcp"
bearer_token_env_var = "DATAXAPI_API_KEY"
3

Restart Codex

Then ask it to list the DataXAPI tools. You should get the five below.

5 tools · only call is chargedSetup steps for Codex →

n8nThe MCP Client Tool node, attached as a tool to an AI Agent node of a workflow
1

Open the place MCP servers are added

The MCP Client Tool node, attached as a tool to an AI Agent node of a workflow

2

Fill in the fields

Each as written here. The key is typed into the client and kept by it.

FieldValue
Endpointhttps://api.dataxapi.com/mcp
Server TransportHTTP Streamable
AuthenticationBearer Auth
Credential for Bearer Auth → Bearer Tokenyour API key
3

Save, then ask it to list the tools

You should get the five below.

5 tools · only call is chargedSetup steps for n8n →

Cherry StudioSettings → MCP Servers → Add Server
1

Open the place MCP servers are added

Settings → MCP Servers → Add Server

2

Fill in the fields

Each as written here. The key is typed into the client and kept by it.

FieldValue
Namedataxapi
TypeStreamable HTTP
URLhttps://api.dataxapi.com/mcp
HeadersOne header: Authorization, with the value Bearer, a space, and your API key
3

Save, then ask it to list the tools

You should get the five below.

5 tools · only call is chargedSetup steps for Cherry Studio →

TraeIn the IDE or the Agent window: Settings → MCP → Add (top right) → Create Manually, then the JSON below, and Confirm
1

Open the place MCP servers are added

In the IDE or the Agent window: Settings → MCP → Add (top right) → Create Manually, then the JSON below, and Confirm

2

Fill in the fields

Each as written here. The key is typed into the client and kept by it.

FieldValue
JSON{"mcpServers":{"dataxapi":{"url":"https://api.dataxapi.com/mcp","headers":{"Authorization":"Bearer your API key"}}}}
3

Save, then ask it to list the tools

You should get the five below.

5 tools · only call is chargedSetup steps for Trae →

扣子 CozeCoze's developer platform: a workspace's Library → +Resource → Plugin, of the type MCP; once it is made and published, add it to an agent or a workflow
1

Open the place MCP servers are added

Coze's developer platform: a workspace's Library → +Resource → Plugin, of the type MCP; once it is made and published, add it to an agent or a workflow

2

Fill in the fields

Each as written here. The key is typed into the client and kept by it.

FieldValue
插件 URLhttps://api.dataxapi.com/mcp
授权方式Service → Service token / API key
位置Header
Parameter nameAuthorization
Service token / API keyBearer, a space, and your API key
3

Save, then ask it to list the tools

You should get the five below.

5 tools · only call is chargedSetup steps for 扣子 Coze →

ChatGPTChatGPT on the web: Plugins → + → Add custom MCP server; the name, the MCP address and OAuth as its authentication; tick the risk notice and choose Create as a plugin
1

Open the place MCP servers are added

ChatGPT on the web: Plugins → + → Add custom MCP server; the name, the MCP address and OAuth as its authentication; tick the risk notice and choose Create as a plugin

2

Fill in the fields

One address. You sign in to DataXAPI and approve; no key is copied anywhere.

FieldValue
NameDataXAPI
URLhttps://api.dataxapi.com/mcp
AuthenticationOAuth: sign in to DataXAPI and approve
3

Save, then ask it to list the tools

You should get the five below.

5 tools · only call is chargedSetup steps for ChatGPT →

ClaudeOn the web or in the desktop app: Customize → Connectors → + Add → Add custom connector, with the name and the MCP address, and Sign in now as its authentication (on Team and Enterprise, an owner adds it first under Organization settings → Connectors)
1

Open the place MCP servers are added

On the web or in the desktop app: Customize → Connectors → + Add → Add custom connector, with the name and the MCP address, and Sign in now as its authentication (on Team and Enterprise, an owner adds it first under Organization settings → Connectors)

2

Fill in the fields

One address. You sign in to DataXAPI and approve; no key is copied anywhere.

FieldValue
NameDataXAPI
URLhttps://api.dataxapi.com/mcp
AuthenticationOAuth: sign in to DataXAPI and approve
3

Save, then ask it to list the tools

You should get the five below.

5 tools · only call is chargedSetup steps for Claude →

Feishu (Lark)Feishu aily (Doubao work partner): an agent's settings → MCP services → Add custom MCP service
1

Open the place MCP servers are added

Feishu aily (Doubao work partner): an agent's settings → MCP services → Add custom MCP service

2

Fill in the fields

Each as written here. The key is typed into the client and kept by it.

FieldValue
Request URLhttps://api.dataxapi.com/mcp
Endpoint typeStreamable HTTP
HeaderAuthorization, set to be typed by each user: Bearer, a space, and their own API key
3

Save, then ask it to list the tools

You should get the five below.

5 tools · only call is chargedSetup steps for Feishu (Lark) →

A first conversation

A question, the calls it made, and what each one cost.

Tips for Dify

  • Give it its own key. Create a key named “Dify” with a daily budget in the console. When the budget is used up, calls stop; nothing else on your account is touched.
  • Let the free tools run without asking. If Dify asks before it runs a tool, allow find, describe, read_more and account. Leave call on “ask” if you want to approve every charge.
  • Answers fit the context. A DataXAPI answer stops at about 20 KB on an item boundary and says how to read on; read_more gets the rest at no charge.
  • Cap what a call may cost. Ask it to pass max_price with every call. A call that could cost more is refused before anything is charged.
Difyconnected to DataXAPI
What has @nasa posted on TikTok lately?
find{ query: "tiktok account recent videos" }FreeFound tiktok.users.videos.list · TikTok user videos · $0.0020 a call
call{ capability: "tiktok.users.videos.list", username: "nasa", max_price: "0.01" }Up to 10 videos · compact view

The latest videos come back in the standard shape, each with its link, text, date and counts. Your AI answers from them, links each video and says what the call cost.

Each post comes back with
  • url
  • type
  • text
  • lang
  • published_at
  • author.name
  • metrics.likes
  • metrics.comments
  • metrics.shares
A call recorded on 2026-10-12 returned 10.
2 tool calls · 1 charged$0.0020

What to know about Dify

  • Headers came in Dify 1.9.0. A self-hosted Dify older than that has no field for the key: sign in with OAuth instead (dynamic client registration is on by default).
  • Apps find the server by its identifier: keep dataxapi, and use the same one in another workspace.
  • The key in a header is shared by the whole workspace: give it a daily budget in the console.

The first call

Create an Agent app (or an Agent node in a workflow), add the DataXAPI tools, and ask in the preview: “Use DataXAPI to find popular Bilibili videos about camping.”

From Dify's own documentation, read on 2026-10-29. Menus move: if a step differs, the client's page is right. docs.dify.ai/en/cloud/use-dify/workspace/tools#mcp · github.com/langgenius/dify/pull/24760

If something is off

What you seeWhyFix
Dify does not list the DataXAPI toolsDify was started before the entry was added, or the address is not the one above.Check the entry, then quit Dify and start it again.
find works, call says unauthorizedThe key did not reach the service from Dify. The two free tools need no key, so they still answer.Check that the key is where the entry reads it from, and that it starts with dx_. Then restart.
call says insufficient_balance or key_budget_exceededThe balance, or this key's budget, does not cover the price of the call. Nothing was charged.Ask it to run account, then top up or raise the key's budget.

What you can ask

Under each question: the endpoint your AI calls, and what one call costs

What is on Douyin's hot search board right now?

Find Xiaohongshu (RedNote) notes that review sunscreen.

Find TikTok videos about camping coffee.

Get the transcript of this YouTube video and sum it up.

What is trending on X (Twitter) in Japan today?

What do people on Reddit say about standing desks?

The 5 tools your AI gets

findFinds the endpoint for a question.
describeReads up to 5 endpoints in full: parameters, fields, price.
callRuns one endpoint and returns one page of data.
read_moreRe-reads a result for 24 hours.
accountBalance, usage and receipts.
Finding, describing, reading on, accountFree
A callfrom $0.0003
Errors and timeoutsNot charged

Charged per call from your balance. No subscription, and the balance does not expire. Top up from $10, by card or Alipay.

Clients

Any other client that speaks remote MCP connects with the address and a key.

MCP →

Give Dify the market.

Free trial on sign-up: up to 333 calls at $0.0003. Sign-up takes an email and no card. A failed call is never charged.