# Meta Ad Library MCP connection

Meta Ad Library MCP connection. Follow concrete contracts, examples and reviewable steps using Meta Ad Library.

Canonical page: https://datanavoapi.com/en/mcp/meta/

This is a local simulation. Program-generated samples are not live platform data and do not establish provider availability.

## Choose a reachable transport

Meta Ad Library MCP connection uses shared discovery and call tools; the platform selects capability IDs and fields rather than a separate gateway.

A client on this computer can test stdio. Localhost inside a container, remote desktop or remote runtime identifies that environment and must be checked separately.

## Local configuration example

Replace the placeholder with the absolute project path. This configuration contains no provider key and defaults to demo.

```json
{
  "mcpServers": {
    "guanliu": {
      "command": "node",
      "args": [
        "/ABSOLUTE/PATH/guanliu/scripts/mcp-server.mjs"
      ],
      "env": {
        "GUANLIU_MCP_MODE": "demo",
        "GUANLIU_MCP_PORT": "4321"
      }
    }
  }
}
```

## First reviewable request

Ask the client to describe meta.ads.get, inspect its inputs, and explicitly run a fixture. Retain request_id.

```json
{
  "capability": "meta.ads.get",
  "params": {
    "id": "demo-id"
  },
  "mode": "demo"
}
```

- [Meta ad detail](https://datanavoapi.com/en/apis/meta/ads/get/)

## Connection checks

| Check | Expected result |

| --- | --- |

| Website reachability | http://127.0.0.1:4321/api/health |

| Discovery | find → describe |

| Transport boundary | Choose explicit data handoff or a local connection based on runtime location |

| Live execution | Disabled; local fixtures or TEST simulation |

| Result recovery | account what=receipt / result |

## Related pages

- [Meta ad detail](https://datanavoapi.com/en/apis/meta/ads/get/)
- [Meta Ad Library search](https://datanavoapi.com/en/apis/meta/ads/search/)
- [Meta ad video transcript](https://datanavoapi.com/en/apis/meta/ads/transcript/get/)
- [Meta advertiser's ads](https://datanavoapi.com/en/apis/meta/advertisers/ads/list/)
- [Meta Ad Library APIs](https://datanavoapi.com/en/apis/meta/)
- [Ad fields](https://datanavoapi.com/en/docs/objects/ad/)
- [Which data tools fit a marketing research task?](https://datanavoapi.com/en/answers/chinese-social-media-marketing-data-tools/)
- [How do I research Meta ads through an API?](https://datanavoapi.com/en/answers/meta-ad-library-api/)
- [Ad creative research workflow](https://datanavoapi.com/en/skills/ads/)
- [Competitor content research workflow](https://datanavoapi.com/en/skills/competitors/)

[中文](https://datanavoapi.com/mcp/meta/)
