
HasData ChatGPT
com.hasdatav1.0.0更新于 Oct 5, 2026
Send a prompt to ChatGPT anonymously and get the answer with its web sources, as JSON.
概览
让助手匿名向 ChatGPT 发送提示词,并以 JSON 返回 markdown 格式的答案及其参考的网页来源。
- 功能
- 这是一个托管型 MCP 服务器,只提供一个工具 hasdata_chatgpt_chat_getChatgptAnswer,接受提示词(最多 8000 字符)和可选的 IANA 时区。结果在 conversation.answer 中以 markdown 返回答案,同时给出会话标题、作答模型、是否使用了网络搜索,以及包含 title、url、domain 的来源列表。每次请求都是全新会话,不保留此前记忆。
- 适用场景
- 适合想获取 ChatGPT 公开回答及其引用来源、又不想使用自己的 OpenAI 账号或计费的场景。适用于重视当前网络来源的研究型提问,也适用于多语言提问,因为答案会跟随提示词的语言。
- 运行要求
- 需要一个 MCP 客户端,以及在 app.hasdata.com 创建的 HasData API 密钥。远程使用是 streamable HTTP 端点,通过 x-api-key 请求头认证;仅支持 stdio 的客户端可使用 npm 包 @hasdata/chatgpt-mcp 或 PyPI 包 hasdata-chatgpt-mcp(用 uvx 运行),它们读取 HASDATA_API_KEY 环境变量。需要网络访问。
安装
在 SourceWeft 中
- 打开 控制台中的 HasData ChatGPT,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"chatgpt": {
"type": "http",
"url": "https://mcp.hasdata.com/mcp?apis=chatgpt"
}
}
}README
ChatGPT MCP Server
A hosted Model Context Protocol (MCP) server that gives Claude, Cursor, Windsurf and any other MCP client one ChatGPT tool. Send a prompt anonymously and get the answer back as markdown together with the web pages ChatGPT consulted, as structured JSON, with no OpenAI account and no API key of your own.
1,000 free credits every month, no card required, which is 100 prompts.
[Glama score] [tool contract] [MCP] [Tools] [npm] [PyPI] [License]
Contents
- What you need
- Quick start
- Example prompts
- Tools
- Errors and failure paths
- Pricing, free tier and limits
- How it compares
- FAQ
- HasData links
- Development
- Contributing
- License
What you need
An MCP client and a HasData API key from the dashboard, free to create with no card, and the free tier covers 100 calls a month at the 10-credit rate. This is a remote server, so the simplest path is a URL and an x-api-key header, with no container to run and no OpenAI billing anywhere in the flow. A client that only speaks stdio reaches it through a thin launcher, published as @hasdata/chatgpt-mcp on npm and hasdata-chatgpt-mcp on PyPI, shown below.
Quick start
The server URL is the same for every client. We run it hands-on in Claude Code and Claude Desktop. The other blocks follow each client's own documented format for a remote server.
Clients with OAuth support can add the same URL as a connector and sign in without putting a key in a config file.
Claude Code
Claude Desktop
Cursor
VS Code
Example prompts
Prompts, not code. Paste one in and the agent picks the tool itself. Each is annotated with the calls it takes, because every successful call costs 10 credits.
Ask ChatGPT what the current state of the Artemis program is, and list the sources it used.
One call, 10 credits. The answer and the sources come back together.
Ask ChatGPT the same question in German.
One call, 10 credits. The answer follows the language of the prompt, so write the prompt in the language you want back.
Ask ChatGPT what happened in AI this week, with Berlin as the current date.
One call, 10 credits. timezone is what fixes the meaning of "this week".
Put the same question to ChatGPT three times and show where the answers differ.
Three calls, 30 credits. Each request is a fresh conversation, so there is no carry-over between them.
Tools
One tool, 10 credits per successful call.
Ask ChatGPT
hasdata_chatgpt_chat_getChatgptAnswer
Everything lands under conversation. The answer is in answer as markdown, with title holding the name ChatGPT generated for the thread, model the model that answered, and usedWebSearch saying whether it went to the web at all. finishReason and complete tell a truncated answer from a finished one.
Errors and failure paths
Your client almost never sees an HTTP error code from a tool call. The MCP layer answers 200 and puts the failure inside the result, with isError set to true and the reason as text.
sources is uneven, and partly absent. In a measured answer carrying twenty sources, every one had title, url and domain, eleven had publishedDate and only five had snippet. Read each field defensively rather than assuming the shape of the first element holds for the rest.
No web search means no sources. usedWebSearch is false when ChatGPT answers from the model alone, and sources is then empty or missing. A prompt about a stable fact often takes that path, so ask for current information when citations are the point.
Every call is a fresh conversation. There is no memory between requests, so a follow-up has to carry its own context in the prompt. conversationId identifies the thread that answered, not a thread you can continue.
A truncated answer still succeeds. Check complete and finishReason before treating answer as the whole response.
Each successful call spends credits from the connected account. A call that fails validation is not billed.
Pricing, free tier and limits
The ChatGPT tool costs 10 credits per successful call. Answer length does not change the price.
The free tier is 1,000 credits every month with no card, which is 100 prompts.
Paid plans start at $59 a month for 200,000 credits, which is 20,000 calls. The unit price falls on larger plans. Current numbers are on the plans page.
How it compares
The two are not substitutes. The OpenAI API is the right call when you need system prompts, tools, streaming and conversation state. This server is the right call when you want what ChatGPT publicly answers, with its citations, and no account of your own.
FAQ
Do I need an OpenAI account or an API key?
No. The server answers anonymously through HasData, and the only credential involved is your HasData key.
Which model answers?
Whichever ChatGPT serves anonymously at the time. The response reports it in model, so read it rather than assuming. A measured call returned gpt-5-6.
Can I continue a conversation?
No. Each request is a fresh thread with no memory of earlier ones. Carry the context in the prompt instead.
What language will the answer be in?
The language of the prompt. Ask in German and the answer comes back in German, or ask explicitly for a language in the prompt.
Is HasData affiliated with OpenAI?
No. HasData is an independent web data provider and is not affiliated with, endorsed by or sponsored by OpenAI. All trademarks belong to their owners.
Compliance and personal data
The server reads what ChatGPT answers publicly to an anonymous visitor. It does not log in, and it does not reach private conversations or account data.
HasData links
Development
The tests in test/ assert the tool contract, the part that can break without a commit here. They check that ?apis=chatgpt returns the one expected tool, that its name and required parameter have not changed, that it carries a description, and that a real call still puts the answer under conversation.
Contributing
The parameter table and the sample above were read from the live schema and from real calls rather than from documentation. A correction is welcome when a field or a failure mode has changed. Open an issue with the response you saw.
License
MIT
来源:README.md,提交 c4d3f11
工具
0版本历史
1- v1.0.0最新Oct 5, 2026
