toMCP 标志

toMCP

社区
Ami3466

Turn any website or doc into an MCP server

发布者Ami3466
代码仓库tomcp
语言HTML
复刻数
21
星标数
175
可用工具
0
传输类型streamable-http
分类
许可协议Apache-2.0
链接
  • 将工具接入 AI 工作流

    toMCP 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 175 个 Star 和 21 个 Fork。

toMCP

Turn any website into an MCP server

Quick start

Put tomcp.org/ in front of any URL:

https://tomcp.org/docs.stripe.com

That address is an MCP server. Add it to your client, or paste the URL at tomcp.org instead.

Why toMCP?

specific APIs often cause AI hallucinations, and web searching is unreliable. This tool lets you serve your documentation as an MCP server, giving the AI direct access to the clear context it needs without manual copy-pasting.

Standard web_fetch tools dump raw HTML into your AI's context—navbars, scripts, footers, and noise. toMCP runs pages through a readability parser and converts to clean markdown, using a fraction of the tokens.

Persistent Documentation Context

AI assistants hallucinate API details when they lack documentation. MCP Resources are pinned as permanent, read-only context—the model won't skip or forget them. Ideal for framework docs, API references, and internal team docs.

web_fetch vs MCP Resources

web_fetchMCP Resource
DataRaw HTML with noiseClean markdown
TokensHighLow
PersistencePer-requestAlways available
HallucinationHigherLower
JS SupportFull (SPAs / Dynamic)Static Only (SSG)

Demo

toMCP Demo

Supported AI Tools

  • Cursor - ~/.cursor/mcp.json
  • Claude Desktop - ~/.claude/claude_desktop_config.json
  • Windsurf - ~/.codeium/windsurf/mcp_config.json
  • VS Code - .vscode/mcp.json
  • Cline - ~/.cline/mcp_settings.json

How It Works

MCP Config

  1. Visit tomcp.org
  2. Enter any website URL
  3. Select your AI tool
  4. Copy the generated MCP config
  5. Add it to your tool's config file
  6. Restart your AI tool

Chat

  1. Visit tomcp.org
  2. Paste any website URL
  3. Click "Start Chat"
  4. Ask questions about the website's content

Example Config

json
{
  "mcpServers": {
    "docs-stripe-com": {
      "url": "https://tomcp.org/docs.stripe.com"
    }
  }
}

Chat API

bash
curl -X POST https://tomcp.org/chat \
  -H "Content-Type: application/json" \
  -d '{"url": "docs.stripe.com", "message": "How do I create a payment intent?"}'

AI Models

Free Models (No API Key Required)

These models are available for everyone with no setup:

  • Llama 3.1 8B (Meta) - Default model, fast and capable
  • Hermes 2 Pro (NousResearch) - Great for reasoning
  • Mistral 7B (Mistral) - Efficient instruction-following
  • Gemma 7B LoRA (Google) - Lightweight and fast

paid Models (API Key Required)

Add your Cloudflare Workers AI API key to unlock these models:

  • Llama 3.3 70B (Meta) - Most powerful Llama model
  • DeepSeek R1 32B (DeepSeek) - Advanced reasoning
  • Mistral Large (Mistral) - Enterprise-grade
  • Gemma 3 12B (Google) - Latest Gemma
  • GPT OSS 120B/20B (OpenAI) - Open-source GPT variants

Adding Your API Key

You can add your own Cloudflare Workers AI API key to:

  1. Unlock all paid models - Access larger, more capable models
  2. Bypass rate limits - No daily request limits
  3. Use your own quota - Charges go to your Cloudflare account

How to Get an API Key

  1. Go to Cloudflare Workers AI
  2. Create an API token with Workers AI permissions
  3. Copy the token

How to Add Your Key

  1. Start a chat session on tomcp.org
  2. Below the chat input, you'll see "Add API key from Cloudflare Workers AI"
  3. Paste your API key and click "Save"
  4. paid models will now be unlocked in the dropdown

Where Is the API Key Stored?

  • Your API key is stored locally in your browser using localStorage
  • Key name: tomcp_api_key
  • The key is sent with each chat request but never stored on our servers
  • You can remove it anytime by clicking "Remove" in the API key section

How It Works (Technical)

Model Fetching

The available models are fetched dynamically from the Cloudflare Workers AI API:

  1. Frontend calls GET /models endpoint on page load
  2. Worker fetches models from api.cloudflare.com/client/v4/accounts/{id}/ai/models/search
  3. Models are filtered to "Text Generation" tasks and cached for 5 minutes
  4. Frontend displays free models as enabled, paid models as disabled (until API key is added)

Chat Flow

  1. User enters a URL and starts chatting
  2. Worker fetches the static HTML and converts it to clean Markdown (JavaScript is not executed, so SPAs or dynamically-loaded content won't be captured)
  3. Content is sent to the selected AI model with the user's message
  4. Response is returned to the user

Rate Limiting

Without an API key:

  • 5 requests per IP per day

With your API key:

  • No rate limits (uses your Cloudflare account quota)

Tech Stack

  • Frontend: Vanilla HTML/CSS/JS with Tailwind CSS
  • Backend: Cloudflare Workers
  • AI: Cloudflare Workers AI (multiple models)

Features

  • Works with any public URL
  • No setup required - just paste the config
  • Free forever - powered by Cloudflare Workers
  • Chat with any website using AI
  • Side-by-side MCP Config + Chat interface
  • Multiple AI models - Choose from Llama, Mistral, Gemma, and more
  • Bring your own API key - Unlock paid models and bypass rate limits

License

Apache 2.0

安装

TypingMind
{
  "mcpServers": {
    "tomcp": {
      "url": "https://tomcp.org"
    }
  }
}

将 toMCP MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 toMCP 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过远程托管的 MCP 服务器 URL 在 TypingMind 中连接。

添加 MCP 服务器 URL

如果 toMCP 已托管在远程服务器上,或您的团队希望让多个用户共用一个连接器,请选择此方式。

1

打开 MCP 连接器

在 TypingMind 中,前往“插件”,打开“MCP 连接器”,然后选择“添加 URL”。

  1. 在您的浏览器中打开 TypingMind。
  2. 进入“插件”。
  3. 打开“MCP 连接器”。
  4. 点击“添加 URL”。
TypingMind 的“添加自定义 MCP 服务器 URL”表单
2

粘贴服务器 URL

在“服务器 URL”字段中输入 https://tomcp.org。根据服务器要求,添加连接名称、描述、图标、自定义 HTTP 请求头或 OAuth 客户端设置。

  1. 将 https://tomcp.org 粘贴到“服务器 URL”字段中。
  2. 为 toMCP 输入连接名称。
  3. 您可以添加描述和图标,以便更容易识别此连接。
  4. 如果服务器需要身份验证,请添加自定义 HTTP 请求头或 OAuth 客户端信息。
3

创建连接

点击“创建连接”,然后返回插件列表,确认新的 MCP 连接显示为“有效”。

  1. 点击“创建连接”。
  2. 返回 MCP 连接器列表。
  3. 确认 toMCP 连接显示为“有效”。
  4. 如果连接未立即出现,请刷新插件列表。
4

切换模型,无需重新连接

使用您偏好的模型开始聊天,在“插件”中启用 toMCP 工具,并根据需要随时切换到其他模型。该 MCP 连接在 TypingMind 工作区中仍然可用。

  1. 在 TypingMind 中开始新聊天。
  2. 选择您想使用的 AI 模型。
  3. 在“插件”中启用 toMCP 工具。
  4. 需要时,请让模型使用该工具。
  5. 切换到其他 AI 模型,继续使用同一个 MCP 连接。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 toMCP 帮我完成这项任务吗?
toMCP
当然。我已阅读。
以下是我使用 toMCP 得到的结果。

常见问题

toMCP MCP 服务器有什么用途?

toMCP 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 toMCP MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您可以让 Claude、ChatGPT、Gemini 等不同 AI 模型,或您在 TypingMind 中配置的其他模型使用 toMCP,而无需为每个模型单独配置 MCP 服务器。

为什么在 TypingMind 中使用 toMCP MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是优秀的大语言模型聊天前端之一。连接 toMCP 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 toMCP MCP 连接到 TypingMind?

在 TypingMind 中添加 toMCP 托管的 MCP 服务器 URL,即可连接。如果您希望在 TypingMind 工作区中使用远程 MCP 连接,这种方式很适合。

toMCP MCP 在 TypingMind 中提供哪些工具?

toMCP 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 toMCP MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行掌控模型提供商、API 密钥、提示词和 MCP 配置。如果 toMCP 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇