Skip to main content
Glama
manolocinti

Meta Ads MCP Server

by manolocinti

Meta Ads MCP Server - Railway Deploy

Server MCP per gestire le campagne Meta Ads da qualsiasi macchina.

πŸš€ Deploy su Railway

1. Prerequisiti

2. Deploy

Opzione A: Deploy da GitHub

  1. Fai push di questa cartella su un repo GitHub

  2. Vai su Railway β†’ New Project β†’ Deploy from GitHub

  3. Seleziona il repository

  4. Railway farΓ  il deploy automaticamente

Opzione B: Deploy con Railway CLI

# Installa Railway CLI
npm install -g @railway/cli

# Login
railway login

# Crea progetto e deploya
railway init
railway up

3. Configura le Variabili d'Ambiente

In Railway, vai su Settings β†’ Variables e aggiungi:

Variabile

Descrizione

META_ACCESS_TOKEN

Token di accesso Meta Marketing API

META_APP_SECRET

(Opzionale) App secret per refresh token

META_APP_ID

(Opzionale) App ID per OAuth

4. Ottieni l'URL

Dopo il deploy, Railway ti fornirΓ  un URL tipo:

https://meta-ads-mcp-production-xxxx.up.railway.app

Related MCP server: flour-ads

βš™οΈ Configura Claude Desktop

Aggiungi questa configurazione a claude_desktop_config.json:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "meta-ads": {
      "url": "https://TUO-URL-RAILWAY.railway.app/mcp"
    }
  }
}

πŸ“‘ Endpoints

Endpoint

Descrizione

GET /

Info server e configurazione

GET /health

Health check

POST /mcp

Endpoint MCP principale

GET /sse

Server-Sent Events

πŸ” Come ottenere il Meta Access Token

  1. Vai su Meta for Developers

  2. Crea un'app o usa una esistente

  3. Vai su Tools β†’ Graph API Explorer

  4. Seleziona la tua app

  5. Aggiungi i permessi: ads_management, ads_read

  6. Genera il token

  7. (Opzionale) Converti in token a lunga durata

πŸ§ͺ Test

Verifica che funzioni:

# Health check
curl https://TUO-URL.railway.app/health

# Risposta attesa:
# {"status":"ok","timestamp":"...","service":"meta-ads-mcp"}

πŸ’° Costi Railway

  • Piano Free: 500 ore/mese (sufficiente per uso personale)

  • Piano Hobby: $5/mese (sempre attivo)

πŸ”§ Troubleshooting

Token scaduto

  • Rigenera il token su Meta for Developers

  • Aggiorna la variabile META_ACCESS_TOKEN su Railway

Errori di connessione

  • Verifica che l'URL sia corretto (con /mcp alla fine)

  • Controlla i log su Railway Dashboard

Permessi insufficienti

  • Verifica che il token abbia i permessi ads_management e ads_read

F
license - not found
-
quality - not tested
D
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    MCP server for managing ad campaigns across Google Ads, Meta, and more. Enables deploying campaigns, checking performance, and managing budgets from terminal or AI assistants.
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    MCP server to manage Meta Ads (Facebook/Instagram) campaigns, ad sets, insights, and audiences from Claude Code using natural language.
    9
    10
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    MCP Server for the Meta Marketing API. Gives Claude Desktop direct access to your ad account data β€” campaign performance, creative analysis, audience breakdowns, and budget pacing.
    199
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • Hosted Amazon Seller Central and Amazon Ads MCP server for Claude, ChatGPT, Cursor, and agents.

  • MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.

  • Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.

View all MCP Connectors

Latest Blog Posts

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/manolocinti/meta-ads-mcp-railway'

If you have feedback or need assistance with the MCP directory API, please join our Discord server