Pastebase MCP Server

Pastebase MCP Server

Enables AI assistants to extract design systems, brand guidelines, copy, and sitemap structure from any live website via the Pastebase API.

Category
访问服务器

README

<p align="center"> <img src="logo/withtext.webp" alt="Pastebase Logo" width="280" /> </p>

Pastebase Model Context Protocol (MCP) Server

<p align="center"> <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="MIT License" /></a> <a href="https://modelcontextprotocol.io"><img src="https://img.shields.io/badge/Protocol-MCP-green.svg" alt="Protocol" /></a> <a href="https://www.pastebase.site"><img src="https://img.shields.io/badge/Website-pastebase.site-purple.svg" alt="Website" /></a> </p>

An official Model Context Protocol (MCP) stdio server that connects your local AI coding assistants—like Cursor IDE, Claude Desktop, and Cline—to the Pastebase extraction engine.

With this server active, your AI assistant can programmatically crawl, audit, and absorb the design systems, color tokens, typography scales, sitemaps, and copywriting guide of any live website. This feeds highly accurate, real-world context directly into your code generation windows.

┌──────────────────┐         ┌──────────────┐         ┌────────────────────┐
│ AI Assistant     │ ──────> │  Local MCP   │ ──────> │ Pastebase API      │
│ (Cursor/Claude)  │ <────── │  Server      │ <────── │ https://pastebase  │
└──────────────────┘         └──────────────┘         └────────────────────┘

✨ Features

  • Semantic Extraction: Extracts style variables, design parameters, layouts, and copy hierarchies from any live HTTP/HTTPS URL in under 30 seconds.
  • Three Specialized Output Modes:
    • brand: Color tokens, active typography weights, voice description, target audience, and messaging guardrails.
    • copy: High-fidelity copy blocks organized by page layout sections to preserve copy during migrations.
    • structure: Structural outline, head outline (H1-H6 outline), navigation trees, and footer links.
  • Deep Scrape Support: Crawl a single page or automatically follow local sub-links (up to 5 pages) to merge sitemaps and guide layouts.

📋 Prerequisites

  1. Node.js: Installed on your machine (v18.0.0 or higher recommended).
  2. Pastebase API Key: An active developer key. You can generate one inside your Pastebase Developer Dashboard.

🚀 Setup & Installation

First, clone this repository locally (or download the source directory) to a path on your machine (e.g., C:/developer/pastebase-mcp or /Users/name/developer/pastebase-mcp).

Navigate into the directory and install the required dependencies:

cd pastebase-mcp
npm install

⚙️ Configuration Guides

1. Configure in Cursor IDE

To integrate the tool into Cursor:

  1. Open Cursor Settings -> Features -> MCP.
  2. Click + Add New MCP Server.
  3. Configure the settings:
    • Name: pastebase
    • Type: stdio
    • Command: node C:/path/to/pastebase-mcp/index.js (Note: Replace with the actual absolute path to index.js on your machine, using forward slashes /).
  4. Under Environment Variables:
    • Key: PASTEBASE_API_KEY, Value: your_pb_live_api_key_here
    • Key: PASTEBASE_API_URL, Value: https://pastebase.site
  5. Click Save.

2. Configure in Claude Desktop

Open your Claude Desktop configuration file. This file is usually located at:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Add the pastebase server configuration to the mcpServers object:

{
  "mcpServers": {
    "pastebase": {
      "command": "node",
      "args": ["C:/absolute/path/to/pastebase-mcp/index.js"],
      "env": {
        "PASTEBASE_API_KEY": "your_pb_live_api_key_here",
        "PASTEBASE_API_URL": "https://pastebase.site"
      }
    }
  }
}

(Make sure to use absolute paths with forward slashes / on Windows).

Restart Claude Desktop. You will see a new tool icon active in the prompt input field.


3. Configure in Cline (VS Code Extension)

Open the configuration file for Cline, typically located at:

  • Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
  • macOS: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Append the pastebase object to the mcpServers object in the JSON file.


🛠️ Tool Reference

pastebase_extract

Extracts design specs, sitemaps, or text copy from a target website.

Arguments

Argument Type Required Description
url string Yes The absolute HTTP/HTTPS URL of the website to scrape (e.g. https://stripe.com).
mode string No The extraction target. Options: <br> • brand (default): Extracts colors, fonts, tone, CTAs. <br> • copy: Extracts page copy by section. <br> • structure: Extracts sitemap sitemaps and outlines.
scope string No Crawl depth. Options: <br> • page (default): Scrapes target homepage. <br> • site: Crawls up to 5 sublinks in parallel.

💬 Prompt Examples

Once configured, your AI assistant can use the tool automatically when you prompt it to analyze websites. Here are examples:

  • UI Redesign:

    "Use pastebase to fetch the brand guidelines for https://linear.app, and then write a React Tailwind landing page component matching their color system and font pairings."

  • Copy Migration:

    "Can you scrape the text copy from https://stripe.com/payments using the copy mode on pastebase, and summarize their primary value proposition?"

  • Site Architecture Audit:

    "Run a site scope sitemap audit on https://notion.so using pastebase, and map out their main navigation page structure."


🔍 Troubleshooting & Logging

If the tool fails or does not appear in your editor:

  1. Verify Absolute Paths: Ensure the path in your config points directly to index.js and that you used forward slashes (/), even on Windows.
  2. Inspect Claude Desktop Logs:
    • Windows: Check files under %APPDATA%\Claude\logs\
    • macOS: Run tail -f ~/Library/Logs/Claude/mcp*.log in your terminal to see real-time error logging.
  3. Verify API Key: Confirm your Pastebase API Key is copied correctly and has not been revoked.

🛡️ Security & Privacy Notice

  • The MCP server only executes actions when explicitly prompted.
  • All requests are securely routed over HTTPS.
  • Pastebase respects standard robots.txt specifications and checks requests against standard Private Subnet and SSRF protection lists.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选