> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vexqo.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP for AI agents

> Connect your AI tools to live Meta ad and eBay data.

## Connection details

Add Vexqo as a remote MCP server in a client that supports Streamable HTTP and custom authentication headers.

| Setting | Value |
| - | - |
| Server URL | `https://api.vexqo.dev/mcp` |
| Transport | Streamable HTTP |
| Authentication | `X-API-Key: YOUR_API_KEY` |
| Alternative header | `Authorization: Bearer YOUR_API_KEY` |

The endpoint uses POST requests and does not offer a separate SSE subscription. Client configuration formats vary; use these connection values in your client’s remote-server settings.

## Available tools

| Tool | What it does |
| - | - |
| `search_meta_ads` | Search the Meta Ad Library by keyword or advertiser, with filters and pagination. |
| `get_meta_ad` | Retrieve details for a single ad. |
| `search_ebay_listings` | Search active eBay listings. |
| `get_ebay_listing` | Retrieve an eBay listing by its item ID. |
| `get_account` | Inspect balance, usage, and limits. |

Data tools consume the same credits as their HTTP counterparts. `get_account` does not consume collection credits. Tool responses include credit usage information.

## Try a focused prompt

```text theme={null}
Find up to 20 active Meta ads for running shoes in the US.
Summarize recurring hooks and creative formats. Include the ad IDs
and source links available in the results. Do not infer spend or
performance when the source does not provide it.
```

Start with a small result limit and avoid requesting product enrichment unless you need it. Ask your agent to check the account balance before a large research run.

## Automation with n8n

You can also use an HTTP Request node for any endpoint:

1. Set the method to `GET`.
2. Use `https://api.vexqo.dev/facebook/ads` as the URL.
3. Store `X-API-Key` in the node’s header authentication credential.
4. Add `q`, `country`, and `limit` as query parameters.
5. For pagination, pass `search_information.next_cursor` into the next request’s `cursor` parameter while preserving your filters.

Bound the number of pages and concurrent requests. See [Meta ads](https://docs.vexqo.dev/meta-ads.md) for cursor behavior and [credits and errors](https://docs.vexqo.dev/usage.md) for retry guidance.

> [!NOTE]
>
> Connecting a server only establishes access. Verify a real tool result before relying on an integration, and keep source dates and links in any analysis your agent produces.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.