
本页由 AI 翻译,技术细节请以原文为准。 查看原文
该项目提供了一个MCP服务器,作为Meta Ads的接口,实现对Meta Ads数据和管理功能的程序化访问。
概览
该项目提供了一个MCP服务器,作为Meta Ads的接口,实现对Meta Ads数据和管理功能的程序化访问。 你的浏览器不支持视频标签。 为了简化安装体验,我们提供现成安装工具: - 本地安装并配置MCP服务器 - 自动处理环境设置 - 在过程中提示Meta令牌认证(可选) - 如果未提供Meta访问令牌,请连接GoMarble服务器代为创建令牌 这让你手动获得一个Meta开发者访问令牌。 相反,它会安全地连接到 。GoMarble 你的令牌——它会保存在你的机器本地,供 MCP 服务器使用。 * Python 3.10+ * requirements.txt 中列出的依赖 使用虚拟环境有助于干净利落地管理项目依赖[[来源](https://docs.python.org/3/tutorial/venv.html). 2.3. 保护一个具备必要权限(例如ads_read)的元用户访问令牌。
概述(AI 翻译)
该项目提供了一个MCP服务器,作为Meta Ads的接口,实现对Meta Ads数据和管理功能的程序化访问。
你的浏览器不支持视频标签。
简单的一键设置
为了简化安装体验,我们提供现成安装工具:
👉 下载安装器 - https://gomarble.ai/mcp
加入我们的社区,获取帮助和更新
👉 Slack社区 - 广告中的人工智能
也试试谷歌广告的MCP服务器
👉 谷歌广告MCP - 谷歌广告MCP
它的作用
- 本地安装和配置MCP服务器
- 自动处理环境设置
- 在过程中提供可选的元令牌认证提示
- 如果没有提供Meta访问令牌,则连接GoMarble服务器,代你创建令牌
重要免责声明
这种设置不需要你手动获取Meta开发者访问令牌。
相反,它会安全连接到GoMarble的服务器,代表你创建令牌。 GoMarble 不存储你的令牌——它会保存在你的机器本地,供MCP服务器使用。
布置
先决条件
- Python 3.10+
- [[T1]中列出的依赖关系
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Facebook/Meta Ads MCP Server
This project provides an MCP server acting as an interface to the Meta Ads, enabling programmatic access to Meta Ads data and management features.
Your browser does not support the video tag.
Easy One-Click Setup
For a simpler setup experience, we offer ready-to-use installers:
👉 Download installer - https://gomarble.ai/mcp
Join our community for help and updates
👉 Slack Community - AI in Ads
Try Google ads mcp server also
👉 Google Ads MCP - Google Ads MCP
What It Does
- Installs and configures the MCP server locally
- Automatically handles environment setup
- Prompts for Meta token authentication during the process which is optional
- If Meta access token is not provided then connect to GoMarble’s server to create the token on your behalf
Important Disclaimer
This setup does not require you to manually obtain a Meta Developer Access Token.
Instead, it connects securely to GoMarble’s server to create the token on your behalf. GoMarble does not store your token — it is saved locally on your machine for use with the MCP server.
Setup
Prerequisites
- Python 3.10+
- Dependencies listed in
requirements.txt
-
(Optional but Recommended) Create and Activate a Virtual Environment:
python3 -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`Using a virtual environment helps manage project dependencies cleanly[Source].
-
Install Dependencies:
pip install -r requirements.txt -
Obtain Meta Access Token: Secure a Meta User Access Token with the necessary permissions (e.g.,
ads_read). You can generate this through the Meta Developer portal. Follow this link.
Usage with MCP Clients (e.g., Cursor, Claude Desktop)
To integrate this server with an MCP-compatible client, add a configuration(Claude) similar to the following. Replace YOUR_META_ACCESS_TOKEN with your actual token and adjust the path to server.py if necessary.
{
"mcpServers": {
"fb-ads-mcp-server": {
"command": "python",
"args": [
安装
npx -y @smithery/cli install @gomarble-ai/facebook-ads-mcp-server --client claude配置
{
"mcpServers": {
"fb-ads-mcp-server": {
"command": "python",
"args": [
"/path/to/your/fb-ads-mcp-server/server.py",
"--fb-token",
"YOUR_META_ACCESS_TOKEN"
]
// If using a virtual environment, you might need to specify the python executable within the venv:
// "command": "/path/to/your/fb-ads-mcp-server/venv/bin/python",
// "args": [
// "/path/to/your/fb-ads-mcp-server/server.py",
// "--fb-token",
// "YOUR_META_ACCESS_TOKEN"
// ]
}
}
}