flin-meta-ads-mcp
Provides read-only access to Meta Ads accounts, campaigns, ad sets, ads, ad images, creatives, ad previews, and insights for analysis and reporting.
Click on "Install 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., "@flin-meta-ads-mcpshow campaign insights for last 7 days"
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.
flin-meta-ads-mcp
flin-meta-ads-mcp is a public, strict read-only MCP server for Meta Ads. It is designed to be installed with uvx and loaded into Claude with minimal setup.
What it does
Lists and reads Meta Ads accounts
Reads campaigns, ad sets, ads, ad images, and creatives
Gets ad previews (including
preview_urllinks)Fetches insights for account, campaign, ad set, and ad levels
Stays read-only in
v0.1.x
Related MCP server: meta-mcp
Scope for v0.1.x
This release is strictly read-only.
That means:
No create, update, pause, resume, or delete actions
No OAuth flow or token refresh
No generic Graph API proxy
Install
Install and run the latest published PyPI release:
uvx flin-meta-ads-mcpInstall and refresh to the newest published release:
uvx --refresh flin-meta-ads-mcpRun the latest GitHub code (main branch):
uvx --refresh --from git+https://github.com/flin-agency/flin-meta-ads-mcp.git flin-meta-ads-mcpClaude config
Stable (latest published PyPI release, refreshed):
{
"mcpServers": {
"flin-meta-ads-mcp": {
"command": "uvx",
"args": ["--refresh", "flin-meta-ads-mcp"],
"env": {
"META_ACCESS_TOKEN": "EAA...",
"META_GRAPH_API_VERSION": "v21.0"
}
}
}
}Latest GitHub code (main branch, refreshed):
{
"mcpServers": {
"flin-meta-ads-mcp": {
"command": "uvx",
"args": [
"--refresh",
"--from",
"git+https://github.com/flin-agency/flin-meta-ads-mcp.git",
"flin-meta-ads-mcp"
],
"env": {
"META_ACCESS_TOKEN": "EAA...",
"META_GRAPH_API_VERSION": "v21.0"
}
}
}
}Environment variables
Required:
META_ACCESS_TOKEN: Meta access token with read permissions
Optional:
META_GRAPH_API_VERSION: Graph API version, defaultv21.0META_TIMEOUT_SECONDS: request timeout, default30META_MAX_RETRIES: retry count for transient failures, default3META_DEFAULT_AD_ACCOUNT_ID: optional fallback ad account (e.g.act_123...) used when a tool call omitsad_account_idRUN_LIVE_META_TESTS: set to1to enable live integration tests
Ad account selection:
If the token has exactly one accessible ad account, the server resolves it automatically.
If
META_DEFAULT_AD_ACCOUNT_IDis set, the server uses it whenad_account_idis omitted.If the token has multiple accessible ad accounts, pass
ad_account_idin the tool call.
2-minute smoke test
Use these first three tool calls to confirm the server is working:
list_ad_accountslist_campaignsget_insightswithlevel=campaignanddate_preset=last_7d
Example flow in Claude:
Call list_ad_accounts
Call list_campaigns
Call get_insights with level=campaign and date_preset=last_7dIf the first call works but later calls fail, the issue is usually permissions or ad account scope.
If list_campaigns returns a selection request, call it again with one of the suggested ad_account_id values.
Troubleshooting
Problem | Likely cause | Fix |
Token missing |
| Add the env var and restart Claude |
Token invalid | Expired or wrong token | Generate a valid Meta read token |
Permission denied | Missing | Grant the token access to the ad account |
Ambiguous ad account | Token can access multiple ad accounts | Pass |
Rate limit errors | Meta API throttling | Retry later or reduce the number of insight calls |
Development
Local development quickstart:
python -m pip install -e ".[dev]"
pytest -q
ruff check .
mypy srcIf you want to run live Meta API tests:
RUN_LIVE_META_TESTS=1 pytest -qRelease
Create and push a release tag:
git tag v0.1.9
git push origin v0.1.9After release, users can run:
uvx flin-meta-ads-mcpNotes
Use only ad accounts you are allowed to access
This server is intended for analysis and reporting, not mutation
Public users should treat
META_ACCESS_TOKENas a secret and supply it through environment variables only
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/flin-agency/flin-meta-ads-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server