SwipeBuilder MCP Server
Allows programmatic access to a library of saved Facebook ad swipes, enabling users to retrieve ads, filter by format (image, video, carousel), and organize them into collections.
Provides tools to retrieve and manage Google ad swipes, allowing for programmatic filtering by ad format and organization within the SwipeBuilder library.
Enables programmatic retrieval and management of Instagram ad swipes, with capabilities to filter by media format and organize items into folders.
Facilitates access to TikTok ad swipes, providing tools to filter saved ads by format and manage library collections via the Model Context Protocol.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SwipeBuilder MCP Server Show me my recent TikTok video ads"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SwipeBuilder MCP Server
Access your SwipeBuilder ad swipe library programmatically via the Model Context Protocol (MCP).
Installation
From PyPI (when published)
pip install swipebuilder-mcpFrom Source
cd swipebuilder-mcp
pip install -e .Related MCP server: Meta Ads MCP Server
Configuration
Get Your API Key
Log in to SwipeBuilder
Go to Settings > API Keys
Create a new API key (starts with
sb_live_orsb_test_)
Environment Variables
Variable | Required | Default | Description |
| Yes* | - | Your API key. Can also be passed per-tool call. |
| No |
| 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-mcpWith Docker
docker build -t swipebuilder-mcp .
docker run -e SWIPEBUILDER_API_KEY=sb_live_xxx swipebuilder-mcpOr with docker-compose:
SWIPEBUILDER_API_KEY=sb_live_xxx docker-compose upAvailable Tools
get_swipes
Retrieve ads from your swipe file with optional filters.
Parameters:
api_key(optional): API key if not set via environmentplatform(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 swipeapi_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 environmentparent_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 collectionapi_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 collectionapi_key(optional): API key if not set via environmentlimit(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 monthcredits_limit: Monthly credit limitcredits_remaining: Credits still availableperiod_start: Start of billing periodperiod_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
Available Tools
6 toolsget_collectionB
Get a single collection by ID.
Args:
collection_id: The ID of the collection to retrieve
api_key: Your SwipeBuilder API key. Optional if SWIPEBUILDER_API_KEY env var is set.
Returns:
Dictionary with collection data or error message
Credit Usage: No credits consumed
Inputs: collection_id (required), api_key.
get_collection_itemsB
Get items (swipes) in a collection.
Args:
collection_id: The ID of the collection
api_key: Your SwipeBuilder API key. Optional if SWIPEBUILDER_API_KEY env var is set.
limit: Number of results (1-100, default 50)
cursor: Pagination cursor from previous response
Returns:
Dictionary with collection info, items data, and pagination
Credit Usage: 1 credit per swipe returned
Inputs: collection_id (required), api_key, limit, cursor.
get_collectionsA
Get your collections (folders).
Args:
api_key: Your SwipeBuilder API key. Optional if SWIPEBUILDER_API_KEY env var is set.
parent_id: Filter by parent ('root' for root-level, collection ID for children, None for all)
limit: Number of results (1-100, default 50)
cursor: Pagination cursor from previous response
Returns:
Dictionary with collections data and pagination info
Credit Usage: No credits consumed
Inputs: api_key, parent_id, limit, cursor.
get_swipeB
Get a single swipe by ID.
Args:
swipe_id: The ID of the swipe to retrieve
api_key: Your SwipeBuilder API key. Optional if SWIPEBUILDER_API_KEY env var is set.
Returns:
Dictionary with swipe data or error message
Credit Usage: 1 credit
Inputs: swipe_id (required), api_key.
get_swipesA
Get swipes from your swipe file.
Args:
api_key: Your SwipeBuilder API key (sb_live_xxx or sb_test_xxx).
Optional if SWIPEBUILDER_API_KEY env var is set.
platform: Filter by platform (facebook, tiktok, instagram, linkedin, google)
format: Filter by format (image, video, carousel)
limit: Number of results (1-100, default 50)
cursor: Pagination cursor from previous response
Returns:
Dictionary with swipes data, pagination info, and credit usage
Credit Usage: 1 credit per swipe returned
Inputs: api_key, platform, format, limit, +1 more.
get_usageA
Get your API credit usage for the current month.
Args:
api_key: Your SwipeBuilder API key. Optional if SWIPEBUILDER_API_KEY env var is set.
Returns:
Dictionary with usage statistics including:
- 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
Credit Usage: No credits consumed
Inputs: api_key.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Every tool has a clearly distinct purpose with no ambiguity. The tools are organized around specific resources (collections, swipes, usage) and actions (get single item, get list, get usage), making it easy for an agent to select the right tool for each task without confusion.
All tool names follow a consistent verb_noun pattern using snake_case, specifically 'get_' followed by the resource name (e.g., get_collection, get_swipes). This predictability enhances readability and usability across the entire tool set.
With 6 tools, the server is well-scoped for its purpose of accessing SwipeBuilder data. Each tool serves a clear and necessary function—retrieving collections, swipes, and usage information—without being overly sparse or bloated, fitting typical expectations for such an API.
The tool surface provides comprehensive read-only coverage for the domain, including retrieval of collections, items within collections, swipes, and usage data. A minor gap exists in the lack of create, update, or delete operations, but this is likely intentional for a data access server, and agents can still perform core workflows effectively.
Related MCP Connectors
Every public ad library in one API — 12 platforms, plus the ads that got removed.
Real-time Meta, Google, LinkedIn and TikTok ad library access for AI assistants. No API keys.
Track competitors' Meta ads, save swipe files and run Meta campaigns from Claude, ChatGPT or Cursor.
Social media API for AI agents: publish, DMs, comments, Meta ads and leads.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables programmatic access to Meta Ads data and management features, including campaign insights, ad account details, performance metrics, and change history through the Meta Ads API.-
- AlicenseNot gradedqualityDmaintenanceEnables comprehensive management of Facebook and Instagram advertising campaigns via the Meta Marketing API, supporting campaign creation, targeting optimization, and budget management. It provides tools for detailed performance reporting and creative analysis, including insights into spend, ROI, and audience breakdowns.MIT
- AlicenseNot gradedqualityDmaintenanceEnables full read/write management of Facebook ad campaigns, ad sets, ads, and creatives via the Meta Marketing API through natural language, with AI creative generation, performance analytics, and PDF reporting.1MIT
- AlicenseAqualityCmaintenanceEnables building a scored, searchable swipe file from public Meta Ads Library research, with tools to generate new ServiceHawk ad copy from winning patterns.7MIT