What is MCP?
MCP is an open standard that lets AI clients connect to external tools and services. When you create an MCP server in Markifact, you’re giving your AI client access to Markifact’s 1000+ marketing operations. Your AI client can then:- Search for available operations
- Pull reports from Google Ads, Meta Ads, GA4, and more
- Create and manage campaigns
- Send data to Sheets, Slides, Slack, and other destinations
- Work with files and data across platforms
MCP vs Workflows vs Agents
Markifact gives you three ways to get things done. Each is suited to different scenarios:When to use what
- Use Workflows when you have a repeatable task that should run automatically — like sending a weekly Google Ads report to Slides every Monday.
- Use Agents when you want to describe a task and let the AI handle it, like “pull last week’s Meta Ads performance and summarize it.”
- Use MCP when you want to stay in your AI client and use Markifact’s capabilities from there — like asking Claude to pull your GA4 data and compare it with last month.
Getting Started
1. Create an MCP Server
- Go to the MCP page from the sidebar.
- Click New MCP Server.
- Give it a name (e.g. “Claude”, “Manus”).
2. Connect Your AI Client
There are two ways to authenticate your AI client with Markifact: OAuth and Manual Token. The method you use depends on what your AI client supports.OAuth (Recommended)
OAuth is the most secure and convenient way to connect. If your AI client supports OAuth — like Claude — you only need to paste the MCP server URL:Manual Token
For AI clients that don’t support OAuth (like Cursor or other developer tools), you can use a manual token instead:- On your MCP server settings page, a token is automatically generated for you.
- Copy the token and use it in your AI client’s MCP configuration:
X-Markifact-Context to the headers:
connection_id returned by the Markifact API or by the MCP list_connections tool. In static config files, the context value must be a string, so the JSON is escaped.
If your MCP client does not support custom headers, you can pass the same restriction in the MCP URL:
Permissions & Security
Each MCP server can be configured with fine-grained permissions to control exactly what your AI client can access.Operations
By default, a server has access to all operations. You can restrict it to specific operations only — for example, allow only Google Ads reporting, or only Sheets operations.Access
Every MCP server has an Access setting:- Read & write (default): your AI client can pull data and make changes. Changes still need your confirmation in the AI client.
- Read only: your AI client can pull reports and data, but every change is refused.
Connections & Accounts
By default, a server can use all connections in your workspace, and every account inside them. Choose Custom under Connections & Accounts on the MCP server page to limit it. With Custom, tick the connections the server can use. Click a ticked connection to set its limits:- Account lists only show what you allowed. If the AI asks for the accounts on a connection, it only sees the accounts you selected.
- Other accounts are refused. A request for any other account stops before anything is read or changed, and the message tells the AI where you can change the setting.
- The AI knows its limits up front. Listing connections shows which accounts the server can use and which are read only, so the AI picks a valid account straight away.
How the levels combine
Each level can only narrow access, never widen it:Scenarios
One server per client
One server per client
Report on everything, change one account
Report on everything, change one account
Change Google Ads, only read Meta Ads
Change Google Ads, only read Meta Ads
A reporting-only server
A reporting-only server
New accounts added later
New accounts added later
Good to know
- Some changes work at the manager or business level and do not belong to one account, for example creating a new Google Ads client account under a manager account. On a connection limited to selected accounts these are refused. Set the connection’s Accounts to All to allow them.
- Lookups that return no account data, such as targeting searches or keyword ideas, keep working on a connection limited to selected accounts.
- Read & write does not skip approvals: your AI client still asks you to confirm every change.
Runtime Connection Context
If your MCP client supports custom headers, you can narrow which connections a request may use by passingX-Markifact-Context. This is the recommended option.
headers object as an escaped string:
X-Markifact-Context and connection_ids are provided, Markifact uses X-Markifact-Context.
Runtime context works in parallel with the MCP server’s saved connection permissions, which are configured on the MCP server details page in the Markifact UI:
connection_ids is provided as an empty array or empty query parameter, no connection is allowed for that request.
The connection_id value is the Markifact connection ID returned by the API, for example from the auth link status endpoint.
Tool Permissions in Your AI Client
Most AI clients let you control when each tool is allowed to run. We recommend the following setup:- Always allow all read-only tools —
find_operations,get_operation_inputs,list_connections,get_file_url,read_file, andrun_operation. These only read data and are safe to auto-approve. - Require approval for
run_write_operation. This tool creates, updates, or deletes data on external platforms. Keeping it on “Needs approval” lets you review exactly what the AI is about to do before it executes.
Available Tools
When your AI client connects to Markifact via MCP, it gets access to the following tools:find_operations
Search for available operations across all platforms. This is the starting point — your AI client uses this to discover what’s available. For example, searching “google ads report” returns matching operations with their IDs and descriptions.get_operation_inputs
Get the input schema for a specific operation. This tells the AI client what fields are required, what the defaults are, and what values are accepted — so it can fill in the right parameters before running an operation.run_operation
Execute a read-only operation. This covers things like pulling reports, listing accounts, searching for metrics, reading data from Sheets, and similar non-destructive actions.run_write_operation
Execute an operation that creates, updates, or deletes data. This includes actions like creating campaigns, updating ad budgets, sending emails, or modifying Sheets data. Write operations are separated from read operations as a safety measure. Before running a write operation, the AI client is instructed to describe exactly what will change and ask for your confirmation first. This ensures you always stay in control of destructive actions.list_connections
View which platform accounts are connected (e.g. Google Ads, Meta Ads, Slack). Useful when you have multiple accounts for the same platform and need to specify which one to use. Most of the time connections are resolved automatically — this tool is only needed when disambiguation is required.get_file_url
Get a shareable link for a file produced by an operation. Some operations return files (like exported CSVs or generated charts) — this tool creates a temporary signed URL you can open or share.read_file
Inspect the contents of a file returned by a previous operation. Useful for reviewing data before passing it to another operation — like checking the structure of a CSV export before sending it to Sheets.How Credits Work
MCP credit usage is straightforward:- Discovery and utility tools are free.
find_operations,get_operation_inputs,list_connections,get_file_url, andread_filecost 0 credits. - Running operations costs credits, and the cost depends on the specific operation — the same way workflow nodes are priced.
Examples
Tracking MCP Usage
MCP credit consumption appears in the Usage Dashboard under the MCP service type. Each operation execution is logged with the server name and operation ID so you can track exactly where credits are going.Token Management
For manual token authentication, each MCP server can have one active token at a time. You can:- Rotate a token — generates a new token and revokes the old one. Use this if a token is compromised or you want to cycle credentials.
- Copy the token — to paste into a new AI client configuration.
Frequently Asked Questions
Can I have multiple MCP servers?
Can I have multiple MCP servers?
Do I need to set up connections separately for MCP?
Do I need to set up connections separately for MCP?
How does runtime connection context work with MCP connection permissions?
How does runtime connection context work with MCP connection permissions?
A and B, a request can pass {"connection_ids":["B"]} in X-Markifact-Context, or use ?connection_ids=B, to use only B. Passing C is rejected because C is not allowed by the MCP server.Passing {"connection_ids":[]} or ?connection_ids= explicitly allows no connections for that request. Omit runtime context when you want to use the MCP server’s normal saved connection settings.If the MCP server has no saved connection restriction, runtime context can still narrow the request to one or more visible workspace connections. Use X-Markifact-Context when your client supports custom headers; use the query parameter only when headers are not supported.Account limits and read only settings saved on the server always apply, whatever runtime context a request sends.Should I use OAuth or a manual token?
Should I use OAuth or a manual token?
What happens if I delete an MCP server?
What happens if I delete an MCP server?
Is there a limit on how many operations I can run?
Is there a limit on how many operations I can run?
Why is my AI client not finding any operations?
Why is my AI client not finding any operations?
- If you restricted the server to specific operations, make sure the ones you need are included.
- Go to your MCP server settings and check the Operations section.
- Make sure the MCP server URL and token are correct in your AI client.
- Try regenerating the token if using manual authentication.
Why was my operation refused for an account?
Why was my operation refused for an account?
- “Account … is not allowed”: the server can only use the selected accounts on that connection. The message lists the allowed accounts.
- “Account … is read only” or “The … connection is read only”: the server can read that account or connection but cannot change it.
- ”… does not name one of them”: the change works at the manager or business level, which is not available on a connection limited to selected accounts.
Why did my operation fail with a connection error?
Why did my operation fail with a connection error?
- Go to the Connections page in Markifact.
- Connect the platform account your operation needs (e.g. Google Ads, Meta Ads).
- Try the operation again — connections are resolved automatically.
list_connections tool.
