mcpField
B
Bittlebits.ai Mcp

Bittlebits.ai Mcp

远程服务
github.com/bittlebitsaiAI 与智能体118 周前更新
代码仓库

关于 Bittlebits.ai Mcp

Bittlebits MCP Server 将 GEO 评分、页面内容和改写建议提供给编码 Agent 及其他 MCP 客户端。其设置命令行工具可配置客户端,服务器则让 Agent 查看建议并在代码库中应用修改。

主要功能

  1. 01获取 GEO 指标评分
  2. 02获取页面改写建议
  3. 03读取页面 HTML 和 Markdown
  4. 04配置客户端 MCP 设置
  5. 05启动已配置的 AI 会话

适用场景

  1. 01查看页面的 GEO 评分
  2. 02在代码库中应用文案修改建议
  3. 03检查 Bittlebits 获取的页面原始内容
  4. 04编辑后重新评估页面

MCP 相关

将 Bittlebits 页面评分、改写建议和抓取内容作为工具提供给 MCP 客户端。附带的 setup 命令可配置客户端连接。

配置

远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。

服务地址https://bittlebits.ai/mcp
一键复制安装命令
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。

工具

详细介绍

Bittlebits MCP 服务

一个 Model Context Protocol 服务,可将你的 Bittlebits GEO 评分和改写建议直接带入 AI Agent——Claude Code、Cursor、VS Code、Codex,或任何兼容 MCP 的客户端。

无需来回复制内容,你的 Agent 就能获取 Bittlebits 的建议,并直接在代码库中应用这些更改。


快速开始

npx @bittlebits.ai/mcp setup

按照以下步骤即可完成设置:

  1. 选择客户端 — Claude Code、Cursor、VS Code、Codex(可任意组合)。
  2. 登录 — 浏览器窗口会打开;登录 Bittlebits 即可。你的 API 密钥会获取并缓存在本地的 ~/.bittlebits/config.json 中。
  3. 已连接 — 服务配置会写入各客户端的配置文件。重启客户端,然后就可以开始提问。

无需复制粘贴密钥,也无需手动编辑 JSON。

已有 API 密钥?跳过浏览器: npx @bittlebits.ai/mcp setup --api-key bb_your_key


你可以做什么

连接后,可以向你的 Agent 提出以下问题:

  • “告诉我 Bittlebits 建议如何修改此页面,并说明原因。”
  • “应用 Bittlebits 的建议,改写我的主页文案。”
  • “哪些指标最弱?我应该先修复什么?”
  • “获取我的着陆页评分,然后在代码库中找到对应文件并更新。”

可用工具

工具功能
get_score返回页面的 GEO 指标评分(每个维度为 0–10 分)
get_rewrite返回原始页面内容,以及应用 Bittlebits 建议后改写的内容
get_url_content返回 Bittlebits 获取的页面原始 HTML 和 Markdown 内容

所有工具都接受 url(完整页面 URL)或 url_id(已知时使用的 Bittlebits 内部 ID)。首次运行时,Bittlebits 处理页面可能需要几分钟。


setup 命令

npx @bittlebits.ai/mcp setup [options]

  --claude --cursor --vscode --codex   Configure specific clients (skips the menu)
  -p, --project                        Write project-scoped config (current directory)
  --global                             Write user-global config
  --api-key <key>                      Use this key instead of signing in
  -y, --yes                            Non-interactive (use flags/defaults)

各客户端配置文件的写入位置:

客户端项目范围全局范围
Claude Code.mcp.json~/.claude.json
Cursor.cursor/mcp.json~/.cursor/mcp.json
VS Code.vscode/mcp.json用户级 mcp.json
Codex.codex/config.toml~/.codex/config.toml

重新运行 setup 是安全的:它会合并到现有文件中,保留其他 MCP 服务,并且只更新 Bittlebits 条目。


launch 命令

已经运行过 setup?使用 launch,即可立即启动预加载了 Bittlebits 的 AI 会话——无需手动配置。

npx @bittlebits.ai/mcp launch

该命令会检测你的机器上已安装的 AI 客户端(Claude Code、Codex),并启动会话。如果检测到两者,系统会提示你选择一个。

npx @bittlebits.ai/mcp launch [options]

  -c, --client <name>   Force a specific client: claude, codex
  -p, --prompt <text>   Send an initial prompt (non-interactive / scripted use)

示例:

# Interactive session with auto-detected client
npx @bittlebits.ai/mcp launch

# Force Claude Code
npx @bittlebits.ai/mcp launch --client claude

# One-shot score in your terminal
npx @bittlebits.ai/mcp launch --client claude --prompt "Get the GEO score for nike.com"

手动配置

想要自行接入?任何支持 stdio 传输的客户端都可以使用。在环境中设置 BITTLEBITS_API_KEY 后运行 npx bittlebits-mcp——你可以在 bittlebits.ai 的 Settings → API Keys 中找到密钥。

Claude Code(CLI):

claude mcp add --transport stdio bittlebits -e BITTLEBITS_API_KEY=your_key -- npx -y @bittlebits.ai/mcp

Cursor / Claude Code(.cursor/mcp.json 或 .mcp.json):

{
  "mcpServers": {
    "bittlebits": {
      "command": "npx",
      "args": ["-y", "@bittlebits.ai/mcp"],
      "env": { "BITTLEBITS_API_KEY": "your_key_here" }
    }
  }
}

VS Code(.vscode/mcp.json):

{
  "servers": {
    "bittlebits": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@bittlebits.ai/mcp"],
      "env": { "BITTLEBITS_API_KEY": "your_key_here" }
    }
  }
}

Codex(~/.codex/config.toml):

[mcp_servers.bittlebits]
command = "npx"
args = ["-y", "@bittlebits.ai/mcp"]

[mcp_servers.bittlebits.env]
BITTLEBITS_API_KEY = "your_key_here"

前置条件


开发

git clone https://github.com/bittlebitsai/bittlebits-mcp
cd bittlebits-mcp  # local dev still uses the folder name
npm install
npm run dev       # run the server with tsx (no build step)
npm run build     # compile to dist/

# Try the setup flow
node dist/index.js setup

环境变量:

  • BITTLEBITS_API_KEY — 服务模式的 API 密钥(跳过浏览器登录)。

提示

  • 明确说明要保留的内容。 如果品牌语调很重要,请告诉你的 Agent:“应用这些建议,但保留轻松、对话式的语气。”
  • 对于较长的页面,按章节逐步处理——更便于审核。
  • 编辑后重新评分。 更新页面后,触发一次新的 Bittlebits 评分,查看指标提升了多少。

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。