SwipeBuilder MCP Server

SwipeBuilder MCP Server

Enables programmatic access to your SwipeBuilder ad swipe library to retrieve saved ads and manage collections across various social media platforms. It allows for filtering swipes by platform or format and provides tools to monitor API credit usage through natural language.

Category
访问服务器

README

SwipeBuilder MCP Server

Access your SwipeBuilder ad swipe library programmatically via the Model Context Protocol (MCP).

Installation

From PyPI (when published)

pip install swipebuilder-mcp

From Source

cd swipebuilder-mcp
pip install -e .

Configuration

Get Your API Key

  1. Log in to SwipeBuilder
  2. Go to Settings > API Keys
  3. Create a new API key (starts with sb_live_ or sb_test_)

Environment Variables

Variable Required Default Description
SWIPEBUILDER_API_KEY Yes* - Your API key. Can also be passed per-tool call.
SWIPEBUILDER_API_URL No https://api.swipebuilder.io/v1 API base URL (for testing)

Usage

With Claude Desktop

Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "swipebuilder": {
      "command": "swipebuilder-mcp",
      "env": {
        "SWIPEBUILDER_API_KEY": "sb_live_your_key_here"
      }
    }
  }
}

Restart Claude Desktop after updating the configuration.

With Other MCP Clients

Run the server directly:

SWIPEBUILDER_API_KEY=sb_live_xxx swipebuilder-mcp

With Docker

docker build -t swipebuilder-mcp .
docker run -e SWIPEBUILDER_API_KEY=sb_live_xxx swipebuilder-mcp

Or with docker-compose:

SWIPEBUILDER_API_KEY=sb_live_xxx docker-compose up

Available Tools

get_swipes

Retrieve ads from your swipe file with optional filters.

Parameters:

  • api_key (optional): API key if not set via environment
  • platform (optional): Filter by platform (facebook, tiktok, instagram, linkedin, google)
  • format (optional): Filter by format (image, video, carousel)
  • limit (optional): Number of results, 1-100 (default: 50)
  • cursor (optional): Pagination cursor from previous response

Credit Usage: 1 credit per swipe returned

get_swipe

Get a single swipe by ID.

Parameters:

  • swipe_id (required): The ID of the swipe
  • api_key (optional): API key if not set via environment

Credit Usage: 1 credit

get_collections

List your collections (folders).

Parameters:

  • api_key (optional): API key if not set via environment
  • parent_id (optional): Filter by parent ('root' for root-level, collection ID for children)
  • limit (optional): Number of results, 1-100 (default: 50)
  • cursor (optional): Pagination cursor

Credit Usage: No credits consumed

get_collection

Get a single collection by ID.

Parameters:

  • collection_id (required): The ID of the collection
  • api_key (optional): API key if not set via environment

Credit Usage: No credits consumed

get_collection_items

Get items (swipes) within a specific collection.

Parameters:

  • collection_id (required): The ID of the collection
  • api_key (optional): API key if not set via environment
  • limit (optional): Number of results, 1-100 (default: 50)
  • cursor (optional): Pagination cursor

Credit Usage: 1 credit per swipe returned

get_usage

Check your API credit usage for the current billing period.

Parameters:

  • api_key (optional): API key if not set via environment

Credit Usage: No credits consumed

Returns:

  • credits_used: Credits consumed this month
  • credits_limit: Monthly credit limit
  • credits_remaining: Credits still available
  • period_start: Start of billing period
  • period_end: End of billing period

Example Conversations

Once configured, you can ask Claude things like:

  • "Show me my recent Facebook video ads"
  • "Get all swipes from my 'Winners' collection"
  • "How many API credits have I used this month?"
  • "Find all carousel ads I've saved"

Rate Limits

  • 100 requests per minute
  • 1,000 requests per hour

If you exceed these limits, you'll receive a rate limit error.

Credits

Each API call that returns swipe data consumes credits:

  • 1 credit per swipe returned from any endpoint
  • Collections and usage queries are free (no credits)

Check your plan for monthly credit limits.

Support

  • Documentation: https://docs.swipebuilder.io/api
  • Support: support@swipebuilder.io

License

MIT

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选