X Ads MCP server: 25 read tools, 21 opt-in preview-first writes.
registry version 1.1.2
npm
npx -y @getmcpads/x-ads-mcp-servernpm
npx -y @getmcpads/x-ads-mcp-server@1.1.2
Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.
claude_desktop_config.json
{
"mcpServers": {
"x-ads": {
"command": "npx",
"args": [
"-y",
"@getmcpads/x-ads-mcp-server"
],
"env": {
"X_ADS_ACCESS_TOKEN": "<YOUR_X_ADS_ACCESS_TOKEN>",
"X_ADS_ACCOUNT_IDS": "<YOUR_X_ADS_ACCOUNT_IDS>"
}
}
}
}{
"mcpServers": {
"x-ads": {
"command": "npx",
"args": [
"-y",
"@getmcpads/x-ads-mcp-server@1.1.2"
],
"env": {
"X_ADS_ACCESS_TOKEN": "<YOUR_X_ADS_ACCESS_TOKEN>",
"X_ADS_ACCOUNT_IDS": "<YOUR_X_ADS_ACCOUNT_IDS>"
}
}
}
}Format verified against the official Claude Desktop docs ↗.
terminal
claude mcp add --env X_ADS_ACCESS_TOKEN=<YOUR_X_ADS_ACCESS_TOKEN> --env X_ADS_ACCOUNT_IDS=<YOUR_X_ADS_ACCOUNT_IDS> x-ads -- npx -y @getmcpads/x-ads-mcp-server
claude mcp add --env X_ADS_ACCESS_TOKEN=<YOUR_X_ADS_ACCESS_TOKEN> --env X_ADS_ACCOUNT_IDS=<YOUR_X_ADS_ACCOUNT_IDS> x-ads -- npx -y @getmcpads/x-ads-mcp-server@1.1.2
Format verified against the official Claude Code docs ↗.
.cursor/mcp.json
{
"mcpServers": {
"x-ads": {
"command": "npx",
"args": [
"-y",
"@getmcpads/x-ads-mcp-server"
],
"env": {
"X_ADS_ACCESS_TOKEN": "<YOUR_X_ADS_ACCESS_TOKEN>",
"X_ADS_ACCOUNT_IDS": "<YOUR_X_ADS_ACCOUNT_IDS>"
}
}
}
}{
"mcpServers": {
"x-ads": {
"command": "npx",
"args": [
"-y",
"@getmcpads/x-ads-mcp-server@1.1.2"
],
"env": {
"X_ADS_ACCESS_TOKEN": "<YOUR_X_ADS_ACCESS_TOKEN>",
"X_ADS_ACCOUNT_IDS": "<YOUR_X_ADS_ACCOUNT_IDS>"
}
}
}
}Format verified against the official Cursor docs ↗.
.vscode/mcp.json
{
"servers": {
"x-ads": {
"command": "npx",
"args": [
"-y",
"@getmcpads/x-ads-mcp-server"
],
"env": {
"X_ADS_ACCESS_TOKEN": "<YOUR_X_ADS_ACCESS_TOKEN>",
"X_ADS_ACCOUNT_IDS": "<YOUR_X_ADS_ACCOUNT_IDS>"
}
}
}
}{
"servers": {
"x-ads": {
"command": "npx",
"args": [
"-y",
"@getmcpads/x-ads-mcp-server@1.1.2"
],
"env": {
"X_ADS_ACCESS_TOKEN": "<YOUR_X_ADS_ACCESS_TOKEN>",
"X_ADS_ACCOUNT_IDS": "<YOUR_X_ADS_ACCOUNT_IDS>"
}
}
}
}Format verified against the official VS Code docs ↗.
mcp_config.json
{
"mcpServers": {
"x-ads": {
"command": "npx",
"args": [
"-y",
"@getmcpads/x-ads-mcp-server"
],
"env": {
"X_ADS_ACCESS_TOKEN": "<YOUR_X_ADS_ACCESS_TOKEN>",
"X_ADS_ACCOUNT_IDS": "<YOUR_X_ADS_ACCOUNT_IDS>"
}
}
}
}{
"mcpServers": {
"x-ads": {
"command": "npx",
"args": [
"-y",
"@getmcpads/x-ads-mcp-server@1.1.2"
],
"env": {
"X_ADS_ACCESS_TOKEN": "<YOUR_X_ADS_ACCESS_TOKEN>",
"X_ADS_ACCOUNT_IDS": "<YOUR_X_ADS_ACCOUNT_IDS>"
}
}
}
}Format verified against the official Windsurf docs ↗.
Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.
X_ADS_ACCESS_TOKEN required secret — User OAuth 2.0 token. Keep it secret.X_ADS_ACCOUNT_IDS required — Comma-separated allowed account IDs. Required even for reads.X_ADS_SCOPES — Scopes actually granted to the token, including ads.read.X_ADS_ENABLE_WRITES — true exposes 21 write tools. Defaults to false. Calls preview unless confirm is true.最近更新于 46 天前 · Apache-2.0 license
X Ads MCP server Bring your X Ads accounts into your MCP client. Read campaigns and performance, inspect targeting and prepare changes for explicitly selected accounts. Watch the film · What's new · Install · Tool reference · Try hosted getmcpads Play the 45 second film The…
Summary from the project README — github.com/get-mcp-ads/x-ads-mcp-server
Distributed as npm, listed under Marketing & SEO. Review our MCP security guide before granting access to real data.
X Ads MCP server Bring your X Ads accounts into your MCP client. Read campaigns and performance, inspect targeting and prepare changes for explicitly selected accounts. Watch the film · What's new · Install · Tool reference · Try hosted getmcpads Play the 45 second film The
Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.
The MCP server itself is free to install. The source is public on https://github.com/get-mcp-ads/x-ads-mcp-server. Any third-party service it calls may require its own API key and account.
Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.
Publish this server? Link back with a badge on your README or site — copy either snippet.
Markdown
[](https://mcpnav.net/server/x-ads/)
HTML
<a href="https://mcpnav.net/server/x-ads/"><img src="https://mcpnav.net/badge/x-ads.svg" alt="Listed on MCPNav" height="20"></a>