meta-ops-mcp
Provides tools for reading recent Instagram media and retrieving insights for specific media items or the account, enabling monitoring of content performance.
Provides tools for listing ad campaigns and retrieving daily campaign insights, as well as preparing and committing scoped campaign changes (e.g., pausing) with out-of-band approval and drift checks.
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., "@meta-ops-mcpwhat's the performance of my campaigns over the 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.
Meta Ops MCP
Project site: https://lucasaraujonrt.github.io/meta-ops-mcp/ An agent-facing MCP server for Instagram insights and scoped Meta Ads operations. It is a clean extraction of Inker's Meta Graph tooling. It replaces the original arbitrary Graph POST tool with explicit campaign changes that require out-of-band approval.
Tools
Tool | Effect |
| Read recent media |
| Read metrics for one media ID |
| Read account metrics |
| Read campaigns in the configured ad account |
| Read daily metrics for 7 or 30 days |
| Read current campaign/account state and persist a 15-minute change plan |
| Execute a separately approved plan after checking that campaign state has not drifted |
Budget values are integer minor currency units of the configured ad account. For BRL, 5000 means R$50. The server reads the account currency and enforces configured daily/lifetime caps. It never chooses a campaign ID or account from an untrusted search result.
Related MCP server: Social Analytics MCP Server
Setup
Requires Bun 1.2 or newer. Install dependencies with bun install, then set the variables shown in .env.example through your shell or agent host. The server does not load .env files itself.
bun run src/server.tsExample MCP client entry using stdio:
{
"mcpServers": {
"meta-ops": {
"command": "bun",
"args": ["run", "/absolute/path/to/meta-ops-mcp/src/server.ts"],
"env": {
"META_ACCESS_TOKEN": "${META_ACCESS_TOKEN}",
"META_INSTAGRAM_ACCOUNT_ID": "${META_INSTAGRAM_ACCOUNT_ID}",
"META_AD_ACCOUNT_ID": "${META_AD_ACCOUNT_ID}",
"META_GRAPH_API_VERSION": "${META_GRAPH_API_VERSION}"
}
}
}
}The ${...} values are placeholders. Configure secret injection according to your MCP host; do not put a real token in versioned JSON.
Changing a campaign
Ask the agent to call
prepare_campaign_changewith the exact campaign ID, field and value.Review the returned plan: campaign name, account, currency, previous value, proposed value and expiry.
From a trusted shell outside the agent's tool surface, run
bun run src/approve.ts PLAN_ID CAMPAIGN_ID:KIND:VALUEusing the sameMETA_OPS_DBas the server. For example,789:status:PAUSED.The agent may then call
commit_campaign_changewith the plan ID.
Keep the approval command unavailable to the agent. MCP annotations describe tool behavior but do not enforce authorization. The host must control access to the approval path.
An ambiguous provider result becomes uncertain and is not automatically retried. Check Meta's actual campaign state before making another plan. See architecture.
Verification
bun test uses fake Graph responses and no real Meta credentials. It covers account scoping, budget caps, approval requirement, drift checks, one-time POST and uncertain responses.
Origin and scope
The original Inker MCP also had a generic GET/POST escape hatch. This public interface has named operations only and contains no Inker account ID, token or campaign data. Graph API permissions and available metrics vary by account and API version; use the official Meta documentation to configure a compatible token.
This server cannot be deployed
Maintenance
Related MCP Connectors
Boost posts and launch community growth campaigns from your AI assistant. OAuth, credit-billed.
Read and manage Meta Ads campaigns, ad sets, ads, audiences, pages and Business Manager. You provide
Instagram for AI agents: publish, read comments and DMs, insights, and engage from your account.
Hosted Meta ads MCP with OAuth, bounded reads, and prepare/confirm writes.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables reading, publishing, commenting, direct messaging, and pulling insights from Instagram Business or Creator accounts via the Graph API.6MIT
- AlicenseAqualityDmaintenanceEnables Instagram and Facebook analytics via the Meta Graph API, offering account insights, media analytics, and post engagement data.195MIT
- AlicenseCqualityCmaintenanceEnables reading analytics and publishing content to Facebook Pages, Instagram, and Threads via Meta's Graph API, with a safety toggle for write operations.56MIT
- AlicenseAqualityCmaintenanceEnables publishing photos, reels, and stories to Instagram, reading and moderating comments, fetching performance insights, drafting captions via MCP sampling, and scheduling reels for later.1314 npmMIT