Connect PrimaryAPI’s MCP server and your agent can search the Ad Library, read public pages, posts and comments, browse Marketplace and find events, all with one key.
Server URL
claude mcp add --transport http primaryapi \
https://api.primaryapi.com/mcp \
--header "Authorization: Bearer $PRIMARYAPI_API_KEY"Run it in a terminal. Your shell fills in the key from the environment.
Ask your agent
Search the Ad Library for running shoe ads shown in Germany and describe the offers they lead with.
List the latest posts on this Facebook page with their reactions and comments: <page URL>
Find music festivals listed on Facebook and give me their dates, venues and ticket prices.
Facebook APIs
Your agent runs each one with run_api and its name. Prices are in credits, from 1 credit per call, and a call that fails costs nothing.
Facebook is a trademark of its owner. PrimaryAPI is not affiliated with Meta.
How it works
Connected to the server, the agent lists the Facebook APIs or searches for what it needs, reads the chosen API’s input schema, and runs it with your key. You set the key’s spend limit, so it can only spend what you allow.
What an MCP server is, and every tool it has · Facebook in the API reference
// Find every Facebook API. No key needed.
{
"name": "list_apis",
"arguments": {
"platform": "facebook"
}
}
// Run one with your key.
{
"name": "run_api",
"arguments": {
"sku": "facebook.ads_search",
"input": {
"query": "running shoes",
"country": "DE",
"limit": 10
}
}
}Yes. It can search ads by keyword with country, status, media and date filters, list the ads one page runs, and read an ad’s creative in full.
Yes. It searches listings by keyword near a place, with price, condition and delivery filters, and can open any one listing for its details.
No. These APIs read public data: pages, their posts and reels, public groups, events, ads and Marketplace listings.
No. PrimaryAPI runs this MCP server and is not affiliated with Meta. It gives your agent public Facebook data through PrimaryAPI’s APIs, next to every other platform in the catalog.
No. Your agent uses one PrimaryAPI key for every Facebook API on this page and for the rest of the catalog. There is no Facebook app to register.
Connecting and browsing are free. Each Facebook API above has its own price in credits, and you only pay when data comes back.
Create an account, make a key with a spend limit, and add one URL to your MCP client.