AI & MCP:在你的 AI 助手中使用实时网络数据
把 Claude、Cursor、VS Code 或其他 MCP 客户端连接到 OpenData,用大白话索取公开网络数据:本地商户、职位、商品、房源等。数据行会直接返回到对话中,并从你的预付费 AI 钱包扣费;零行结果和失败不收费。
- 一个服务器地址https://ai.opendata.best/mcp 适用于所有支持 HTTP 远程 MCP 服务器的客户端。
- 登录或使用密钥用你的 OpenData Shop 账户登录(OAuth),或发送在 AI 钱包页面创建的 API 密钥。
- 按交付行数付费每个数据源在你运行之前就会显示行价格和行数上限。零行、输入错误、源错误和超时绝不收费。
- 创建账户在 OpenData Shop 登录或注册。同一个账户持有你的 AI 钱包和 API 密钥。
- 开通 AI 钱包打开账户中的 AI 钱包页面,开通钱包并充值。
- 连接你的客户端按下文所示把服务器添加到你的 AI 客户端,然后让它查找数据源并运行。
让你的 AI 来设置
复制这段提示词,粘贴到你的 AI 助手或编程代理中。它会识别自己运行在哪个客户端里,添加服务器、发起登录并检查工具是否可用。提示词中不包含你的密钥。
https://ai.opendata.best/mcp查看提示词
Set up the OpenData MCP server for me in the AI client you are running in. OpenData returns live public web data (local businesses, jobs, products, property, travel, events, reviews) as structured rows.
## Server
- Name: opendata
- URL: https://ai.opendata.best/mcp (Streamable HTTP)
- Sign-in: OAuth (the client registers itself and opens a browser sign-in). Clients without OAuth send the header Authorization: Bearer <API key>.
- Catalogue only, no account needed: https://ai.opendata.best/public/mcp
## Steps
1. Work out which client you are running in and follow its section below. If it is not listed, use "Any MCP client".
2. Add the server. Use OAuth whenever the client supports it, and start the sign-in right away so I can approve access in the browser.
3. If the client only takes an API key, ask me to create one at https://shop.opendata.best/pages/account/ai and to put it into the configuration myself (or into an environment variable). Never ask me to paste the key into this chat and never print it.
4. Reload or restart the client if it needs that, then check that these tools are listed: search_sources, describe_source, run_extraction, get_job_results, get_account_usage.
5. Call get_account_usage. If the balance is zero, tell me to top up at https://shop.opendata.best/pages/account/ai.
6. Suggest these starter tasks, run with a small maxResults (5 to 10) first:
- Use OpenData to find 10 dentists in Chicago with phone numbers, websites and ratings, and show them as a table.
- Use OpenData to list 10 remote data analyst jobs on Indeed with company, location and link.
- Use OpenData to find 10 Airbnb stays in Lisbon for two guests and compare their nightly prices and ratings.
7. Reply in my language.
## Rules after setup
- Find a source with search_sources using a site or category word (maps, jobs, hotels, amazon), not the thing you are looking for. An empty query lists every source.
- Call describe_source before run_extraction to read the inputs, the example call, the row price and the row limit.
- Start with maxResults 5 to 10. Before a job of more than 100 rows, or when the cost is unclear, tell me the expected rows and the row price and wait for my go-ahead.
- Each delivered row is charged once from my wallet. Jobs with zero rows, input errors, source failures or timeouts are not charged. Reading results again with get_job_results is free.
- When a job returns status running, call get_job_results with the next offset until it is done.
- Show rows as a table and name the source site.
- If the balance is too low, send me to https://shop.opendata.best/pages/account/ai to top up, or use a smaller maxResults.
- If sign-in fails, ask me to reconnect the server or sign in again. Never ask me to paste an API key into the chat.
- Collect public data only; do not use results for spam or to profile private individuals.
## Client setup
### Claude Code
With OAuth sign-in:
```
claude mcp add --transport http opendata https://ai.opendata.best/mcp
# then run /mcp in Claude Code and choose Authenticate
```
With an API key:
```
claude mcp add --transport http opendata https://ai.opendata.best/mcp --header "Authorization: Bearer odk_YOUR_KEY"
```
Docs: https://code.claude.com/docs/en/mcp
### Cursor
Configuration file: ~/.cursor/mcp.json
With OAuth sign-in:
```
{
"mcpServers": {
"opendata": {
"url": "https://ai.opendata.best/mcp"
}
}
}
```
With an API key:
```
{
"mcpServers": {
"opendata": {
"url": "https://ai.opendata.best/mcp",
"headers": {
"Authorization": "Bearer odk_YOUR_KEY"
}
}
}
}
```
Docs: https://cursor.com/docs/context/mcp/install-links
### Claude (web and desktop)
1. Open Customize > Connectors (claude.ai/customize/connectors), choose + Add, then Add custom connector. On Team and Enterprise plans an owner adds it first under Organization settings > Connectors.
2. Name it OpenData and paste the server URL https://ai.opendata.best/mcp.
3. With OAuth: set Authentication to Sign in and the OAuth client to Register automatically, save, then choose Connect and approve access.
4. With an API key: set Authentication to No sign in and add the request header Authorization with the value Bearer odk_YOUR_KEY.
5. In a chat, turn the connector on from the + menu under Connectors.
Docs: https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp
### ChatGPT
1. On ChatGPT on the web, open Plugins (chatgpt.com/plugins), choose +, then Add custom MCP server.
2. Name it OpenData and enter the server URL https://ai.opendata.best/mcp.
3. Set Authentication to OAuth, accept the notice, choose Create as a plugin, then sign in and approve access.
4. In a chat, mention @OpenData to use it.
5. Custom MCP servers are available on ChatGPT Business, Enterprise and Edu; on Pro only read-only tools can be used.
Docs: https://help.openai.com/en/articles/12584461-developer-mode-apps-and-full-mcp-support-in-chatgpt-beta
### Codex CLI
Setup (OAuth sign-in):
```
codex mcp add opendata --url https://ai.opendata.best/mcp
codex mcp login opendata
```
Docs: https://developers.openai.com/codex/mcp
### VS Code (GitHub Copilot)
Configuration file: ~/.copilot/mcp-config.json
With OAuth sign-in:
```
{
"mcpServers": {
"opendata": {
"type": "http",
"url": "https://ai.opendata.best/mcp",
"tools": [
"*"
]
}
}
}
```
With an API key:
```
{
"mcpServers": {
"opendata": {
"type": "http",
"url": "https://ai.opendata.best/mcp",
"headers": {
"Authorization": "Bearer odk_YOUR_KEY"
},
"tools": [
"*"
]
}
}
}
```
Or use the Add to VS Code button above, or run Chat: Open Customizations > MCP Servers > Add Server, choose HTTP and enter the server URL.
With OAuth, VS Code opens the sign-in page in your browser the first time it connects.
Docs: https://code.visualstudio.com/docs/agent-customization/mcp-servers
### Claude Desktop (local bridge)
Configuration file: claude_desktop_config.json
With OAuth sign-in:
```
{
"mcpServers": {
"opendata": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://ai.opendata.best/mcp"
]
}
}
}
```
With an API key:
```
{
"mcpServers": {
"opendata": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://ai.opendata.best/mcp",
"--header",
"Authorization: Bearer odk_YOUR_KEY"
]
}
}
}
```
The connector in Customize > Connectors (see Claude) is the simpler way; this bridge runs the server through Node.js on your computer.
Docs: https://modelcontextprotocol.io/docs/develop/connect-local-servers
### Gemini CLI
With OAuth sign-in:
```
gemini mcp add --transport http opendata https://ai.opendata.best/mcp
```
With an API key:
```
gemini mcp add --transport http --header "Authorization: Bearer odk_YOUR_KEY" opendata https://ai.opendata.best/mcp
```
Docs: https://github.com/google-gemini/gemini-cli/blob/main/docs/tools/mcp-server.md
### Factory (droid)
With OAuth sign-in:
```
droid mcp add opendata https://ai.opendata.best/mcp --type http
```
With an API key:
```
droid mcp add opendata https://ai.opendata.best/mcp --type http --header "Authorization: Bearer odk_YOUR_KEY" --no-oauth
```
Docs: https://docs.factory.ai/cli/configuration/mcp
### Command Code
With OAuth sign-in:
```
cmd mcp add --transport http opendata https://ai.opendata.best/mcp
```
With an API key:
```
cmd mcp add --transport http --header "Authorization: Bearer odk_YOUR_KEY" opendata https://ai.opendata.best/mcp
```
Docs: https://commandcode.ai/docs/mcp
### LM Studio
Configuration file: mcp.json
Setup (API key only):
```
{
"mcpServers": {
"opendata": {
"url": "https://ai.opendata.best/mcp",
"headers": {
"Authorization": "Bearer odk_YOUR_KEY"
}
}
}
}
```
Docs: https://lmstudio.ai/docs/app/mcp
### Mistral Le Chat
Setup (OAuth sign-in):
```
https://ai.opendata.best/mcp
```
Docs: https://docs.mistral.ai/le-chat/knowledge-integrations/connectors/mcp-connectors
### GitHub Copilot CLI
Setup (API key only):
```
copilot mcp add --transport http --header "Authorization: Bearer odk_YOUR_KEY" opendata https://ai.opendata.best/mcp
```
Docs: https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers
### OpenCode
Configuration file: ~/.config/opencode/opencode.json
With OAuth sign-in:
```
{
"mcp": {
"servers": {
"opendata": {
"type": "remote",
"url": "https://ai.opendata.best/mcp"
}
}
}
}
# then run: opencode mcp auth opendata
```
With an API key:
```
{
"mcp": {
"servers": {
"opendata": {
"type": "remote",
"url": "https://ai.opendata.best/mcp",
"oauth": false,
"headers": {
"Authorization": "Bearer odk_YOUR_KEY"
}
}
}
}
}
```
Docs: https://opencode.ai/docs/mcp-servers/
### Google Antigravity
Configuration file: ~/.gemini/config/mcp_config.json
With OAuth sign-in:
```
{
"mcpServers": {
"opendata": {
"serverUrl": "https://ai.opendata.best/mcp"
}
}
}
# then open Customizations > MCP Servers and choose Authenticate
```
With an API key:
```
{
"mcpServers": {
"opendata": {
"serverUrl": "https://ai.opendata.best/mcp",
"headers": {
"Authorization": "Bearer odk_YOUR_KEY"
}
}
}
}
```
Docs: https://antigravity.google/docs/mcp
### Any MCP client
Configuration file: mcp.json
With OAuth sign-in:
```
{
"mcpServers": {
"opendata": {
"url": "https://ai.opendata.best/mcp"
}
}
}
```
With an API key:
```
{
"mcpServers": {
"opendata": {
"url": "https://ai.opendata.best/mcp",
"headers": {
"Authorization": "Bearer odk_YOUR_KEY"
}
}
}
}
```
Docs: https://modelcontextprotocol.io/docs/develop/connect-remote-servers
自己手动设置客户端
使用下面的服务器地址。标注 OAuth 的客户端会在你首次使用服务器时打开登录窗口。其他客户端请在 odk_YOUR_KEY 的位置填入你 AI 钱包页面中的密钥。
Any MCP client
OAuth 登录API 密钥把这段内容添加到代码段上方标注的配置文件中。 mcp.json
{
"mcpServers": {
"opendata": {
"url": "https://ai.opendata.best/mcp"
}
}
}{
"mcpServers": {
"opendata": {
"url": "https://ai.opendata.best/mcp",
"headers": {
"Authorization": "Bearer odk_YOUR_KEY"
}
}
}
}Claude Code
OAuth 登录API 密钥在终端中运行此命令。
claude mcp add --transport http opendata https://ai.opendata.best/mcp
# then run /mcp in Claude Code and choose Authenticateclaude mcp add --transport http opendata https://ai.opendata.best/mcp --header "Authorization: Bearer odk_YOUR_KEY"Cursor
OAuth 登录API 密钥把这段内容添加到代码段上方标注的配置文件中。 ~/.cursor/mcp.json
{
"mcpServers": {
"opendata": {
"url": "https://ai.opendata.best/mcp"
}
}
}{
"mcpServers": {
"opendata": {
"url": "https://ai.opendata.best/mcp",
"headers": {
"Authorization": "Bearer odk_YOUR_KEY"
}
}
}
}Claude (web and desktop)
OAuth 登录API 密钥在应用的设置中,用此地址添加自定义连接器。
- Open Customize > Connectors (claude.ai/customize/connectors), choose + Add, then Add custom connector. On Team and Enterprise plans an owner adds it first under Organization settings > Connectors.
- Name it OpenData and paste the server URL https://ai.opendata.best/mcp.
- With OAuth: set Authentication to Sign in and the OAuth client to Register automatically, save, then choose Connect and approve access.
- With an API key: set Authentication to No sign in and add the request header Authorization with the value Bearer odk_YOUR_KEY.
- In a chat, turn the connector on from the + menu under Connectors.
https://ai.opendata.best/mcpAuthorization: Bearer odk_YOUR_KEYChatGPT
OAuth 登录在应用的设置中,用此地址添加自定义连接器。
- On ChatGPT on the web, open Plugins (chatgpt.com/plugins), choose +, then Add custom MCP server.
- Name it OpenData and enter the server URL https://ai.opendata.best/mcp.
- Set Authentication to OAuth, accept the notice, choose Create as a plugin, then sign in and approve access.
- In a chat, mention @OpenData to use it.
- Custom MCP servers are available on ChatGPT Business, Enterprise and Edu; on Pro only read-only tools can be used.
https://ai.opendata.best/mcpCodex CLI
OAuth 登录在终端中运行此命令。
codex mcp add opendata --url https://ai.opendata.best/mcp
codex mcp login opendataVS Code (GitHub Copilot)
OAuth 登录API 密钥把这段内容添加到代码段上方标注的配置文件中。 ~/.copilot/mcp-config.json
- Or use the Add to VS Code button above, or run Chat: Open Customizations > MCP Servers > Add Server, choose HTTP and enter the server URL.
- With OAuth, VS Code opens the sign-in page in your browser the first time it connects.
{
"mcpServers": {
"opendata": {
"type": "http",
"url": "https://ai.opendata.best/mcp",
"tools": [
"*"
]
}
}
}{
"mcpServers": {
"opendata": {
"type": "http",
"url": "https://ai.opendata.best/mcp",
"headers": {
"Authorization": "Bearer odk_YOUR_KEY"
},
"tools": [
"*"
]
}
}
}Claude Desktop (local bridge)
OAuth 登录API 密钥把这段内容添加到代码段上方标注的配置文件中。 claude_desktop_config.json
- The connector in Customize > Connectors (see Claude) is the simpler way; this bridge runs the server through Node.js on your computer.
{
"mcpServers": {
"opendata": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://ai.opendata.best/mcp"
]
}
}
}{
"mcpServers": {
"opendata": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://ai.opendata.best/mcp",
"--header",
"Authorization: Bearer odk_YOUR_KEY"
]
}
}
}Gemini CLI
OAuth 登录API 密钥在终端中运行此命令。
gemini mcp add --transport http opendata https://ai.opendata.best/mcpgemini mcp add --transport http --header "Authorization: Bearer odk_YOUR_KEY" opendata https://ai.opendata.best/mcpFactory (droid)
OAuth 登录API 密钥在终端中运行此命令。
droid mcp add opendata https://ai.opendata.best/mcp --type httpdroid mcp add opendata https://ai.opendata.best/mcp --type http --header "Authorization: Bearer odk_YOUR_KEY" --no-oauthCommand Code
OAuth 登录API 密钥在终端中运行此命令。
cmd mcp add --transport http opendata https://ai.opendata.best/mcpcmd mcp add --transport http --header "Authorization: Bearer odk_YOUR_KEY" opendata https://ai.opendata.best/mcpLM Studio
API 密钥把这段内容添加到代码段上方标注的配置文件中。 mcp.json
此客户端仅使用 API 密钥。
{
"mcpServers": {
"opendata": {
"url": "https://ai.opendata.best/mcp",
"headers": {
"Authorization": "Bearer odk_YOUR_KEY"
}
}
}
}把 odk_YOUR_KEY 替换为你 AI 钱包页面中的密钥。新密钥只在创建后显示一次。
请妥善保管你的密钥:任何持有密钥的人都能消费你的钱包余额。如果密钥泄露,请立即在 AI 钱包页面吊销。
连接成功后,试着问一问
从一个小请求开始。你的助手可以免费搜索目录,并能在运行任务前显示行价格。
- 用 OpenData 查找芝加哥的 10 家牙医,附带电话、网站和评分,并用表格展示。
- 用 OpenData 列出 Indeed 上 10 个远程数据分析师职位,附带公司、地点和链接。
- 用 OpenData 查找里斯本 10 个可住两位客人的 Airbnb 房源,并比较它们的每晚价格和评分。
给你的 AI 的规则
把这些规则粘贴到 AGENTS.md、CLAUDE.md 或你助手的自定义指令中,让它谨慎使用 OpenData 并保持较低的花费。
## OpenData (MCP server "opendata")
- Find a source with search_sources using a site or category word (maps, jobs, hotels, amazon), not the thing you are looking for. An empty query lists every source.
- Call describe_source before run_extraction to read the inputs, the example call, the row price and the row limit.
- Start with maxResults 5 to 10. Before a job of more than 100 rows, or when the cost is unclear, tell me the expected rows and the row price and wait for my go-ahead.
- Each delivered row is charged once from my wallet. Jobs with zero rows, input errors, source failures or timeouts are not charged. Reading results again with get_job_results is free.
- When a job returns status running, call get_job_results with the next offset until it is done.
- Show rows as a table and name the source site.
- If the balance is too low, send me to https://shop.opendata.best/pages/account/ai to top up, or use a smaller maxResults.
- If sign-in fails, ask me to reconnect the server or sign in again. Never ask me to paste an API key into the chat.
- Collect public data only; do not use results for spam or to profile private individuals.
指南
- Connect Manus to OpenData: Live Web Data over MCP
- Connect Perplexity to OpenData: Live Web Data over MCP
- Connect Replit to OpenData: Live Web Data over MCP
- Connect Lovable to OpenData: Live Web Data over MCP
- Connect Bolt to OpenData: Live Web Data over MCP
- Connect v0 to OpenData: Live Web Data over MCP
- Connect Dust to OpenData: Live Web Data over MCP
- Connect Langdock to OpenData: Live Web Data over MCP
- Connect Felo to OpenData: Live Web Data over MCP
- Connect Mistral Le Chat to OpenData over MCP
你的助手能做什么
服务器为你的助手提供五个工具。一个典型的请求是:查找 Chicago 的牙医,附带电话和评分。助手会搜索目录、查看数据源接受的参数、运行任务并把数据行展示给你。
- search_sources
- 按关键词查找数据源,例如牙医、租房或职位。免费。
- describe_source
- 查看一个数据源的输入、字段、行价格和行数上限。免费。
- run_extraction
- 运行一次采集任务并把数据行返回到对话中。
- get_job_results
- 读取较长任务的后续数据行。每行只在首次交付时计费一次。
- get_account_usage
- 查看钱包余额、运行中任务的冻结金额以及最近 24 小时交付的行数。
两种登录方式
使用你的客户端支持的任一种方式。两种方式都使用同一个 AI 钱包。
- OAuth 登录:客户端会在浏览器中打开 OpenData Shop 页面;你登录并一次性批准访问。你可以随时在账户中撤销访问权限。
- API 密钥:在你的 AI 钱包页面创建密钥,并在请求头 Authorization: Bearer odk_YOUR_KEY 中发送。新密钥只显示一次,请妥善保存。
注册前先逛逛
无需账户即可浏览目录,连接 https://ai.opendata.best/public/mcp 即可。它只提供免费的目录工具;运行任务需要账户和已充值的 AI 钱包。
AI 服务和商店订单
商店订单为一个产品交付一份电子表格文件,在结账时付款。AI 服务按需把数据行返回给你的助手,从 AI 钱包扣费。AI 钱包只用于支付 AI 服务。
使用规则
我们的条款、隐私政策和可接受使用规则同样适用于 AI 服务。只采集公开数据,遵守适用于你的隐私法律,不要分享或转售 API 密钥。有问题请联系:kane@opendata.best。