1. Conduid
  2. Maps
  3. gomarble-ai/facebook-ads-mcp-server
MCP server · Maps

gomarble-ai/facebook-ads-mcp-server

MCP server acting as an interface to the Facebook Ads, enabling programmatic access to Facebook Ads data and management features.

Unclaimed MIT maps
62Good

Scored 8 hours ago · breakdown

About gomarble-ai/facebook-ads-mcp-server

gomarble-ai/facebook-ads-mcp-server is an MCP server published by gomarble-ai in the Maps category: mCP server acting as an interface to the Facebook Ads, enabling programmatic access to Facebook Ads data and management features. Conduid read 21 tools from its source: fetch_pagination_url, get_activities_by_adaccount, get_activities_by_adset, get_ad_by_id, get_ad_creative_by_id, get_ad_creatives_by_ad_id and 15 more. No package is published for it, so it installs from a source checkout.

The repository has 370 stars and 112 forks, is licensed MIT, and its last commit was on 5 Aug 2026. Conduid has no tagged release on record for it. It passes 2 of the 5 static checks Conduid ran on the repository; it does not pass Tests present, Dependencies pinned and Scoped permissions. Its topics include maps.

Install

From source
git clone https://github.com/gomarble-ai/facebook-ads-mcp-server

Tools (21)

fetch_pagination_urlFetches data from a pagination URL (e.g., from insights).
ParameterTypeDescription
url *stringThe complete pagination URL (e.g., from response['paging']['next'] or response['paging']['previous']). It includes the necessary token and parameters.
get_activities_by_adaccountRetrieves change history for an ad account.
ParameterTypeDescription
act_id *stringThe ID of the ad account, prefixed with 'act_', e.g., 'act_1234567890'.
afterstringPagination cursor for the next page of results. Obtained from the 'paging.cursors.after' field in the previous response.
beforestringPagination cursor for the previous page of results. Obtained from the 'paging.cursors.before' field in the previous response.
fieldsarrayA list of specific fields to retrieve. If None, all available fields will be returned. Available fields include: - 'actor_id': ID of the user who made the change - 'actor_name': Name of the user who made the change - 'application_id': ID of the application used to make the change - 'application_name': Name of the application used to make the change - 'changed_data': Details about what was changed in JSON format - 'date_time_in_timezone': The timestamp in the account's timezone - 'event_time': The timestamp of when the event occurred - 'event_type': The specific type of change that was made (numeric code) - 'extra_data': Additional data related to the change in JSON format - 'object_id': ID of the object that was changed (ad, campaign, etc.) - 'object_name': Name of the object that was changed - 'object_type': Type of object being modified, values include: 'AD', 'ADSET', 'CAMPAIGN', 'ACCOUNT', 'IMAGE', 'REPORT', etc. - 'translated_event_type': Human-readable description of the change made, examples include: 'ad created', 'campaign budget updated', 'targeting updated', 'ad status changed', etc.
limitintegerMaximum number of activities to return per page. Default behavior returns a server-determined number of results.
sincestringStart date in YYYY-MM-DD format. Defines the beginning of the time range for returned activities. Ignored if 'time_range' is provided.
time_rangeobjectA custom time range with 'since' and 'until' dates in 'YYYY-MM-DD' format. Example: {'since': '2023-01-01', 'until': '2023-01-31'} This parameter overrides the since/until parameters if both are provided.
untilstringEnd date in YYYY-MM-DD format. Defines the end of the time range for returned activities. Ignored if 'time_range' is provided.
get_activities_by_adsetRetrieves change history for an ad set.
ParameterTypeDescription
adset_id *stringThe ID of the ad set, e.g., '123456789'.
afterstringPagination cursor for the next page of results. Obtained from the 'paging.cursors.after' field in the previous response.
beforestringPagination cursor for the previous page of results. Obtained from the 'paging.cursors.before' field in the previous response.
fieldsarrayA list of specific fields to retrieve. If None, all available fields will be returned. Available fields include: - 'actor_id': ID of the user who made the change - 'actor_name': Name of the user who made the change - 'application_id': ID of the application used to make the change - 'application_name': Name of the application used to make the change - 'changed_data': Details about what was changed in JSON format - 'date_time_in_timezone': The timestamp in the account's timezone - 'event_time': The timestamp of when the event occurred - 'event_type': The specific type of change that was made (numeric code) - 'extra_data': Additional data related to the change in JSON format - 'object_id': ID of the object that was changed - 'object_name': Name of the object that was changed - 'object_type': Type of object being modified - 'translated_event_type': Human-readable description of the change made, examples include: 'adset created', 'adset budget updated', 'targeting updated', 'adset status changed', etc.
limitintegerMaximum number of activities to return per page. Default behavior returns a server-determined number of results.
sincestringStart date in YYYY-MM-DD format. Defines the beginning of the time range for returned activities. Ignored if 'time_range' is provided.
time_rangeobjectA custom time range with 'since' and 'until' dates in 'YYYY-MM-DD' format. Example: {'since': '2023-01-01', 'until': '2023-01-31'} This parameter overrides the since/until parameters if both are provided.
untilstringEnd date in YYYY-MM-DD format. Defines the end of the time range for returned activities. Ignored if 'time_range' is provided.
get_ad_by_idRetrieves details for a specific ad.
ParameterTypeDescription
ad_id *stringThe ID of the ad to retrieve information for.
fieldsarrayA list of specific fields to retrieve. If None, a default set of fields will be returned. Available fields include: - 'id': The ad's ID - 'name': The ad's name - 'account_id': The ID of the ad account this ad belongs to - 'adset_id': The ID of the ad set this ad belongs to - 'campaign_id': The ID of the campaign this ad belongs to - 'adlabels': Labels applied to the ad - 'bid_amount': The bid amount for this ad - 'bid_type': The bid type of this ad - 'bid_info': The bid info for this ad - 'configured_status': The configured status of this ad - 'conversion_domain': The conversion domain for this ad - 'created_time': When the ad was created - 'creative': The ad creative - 'effective_status': The effective status of this ad - 'issues_info': Information about issues with this ad - 'recommendations': Recommendations for improving this ad - 'status': The status of this ad - 'tracking_specs': The tracking specs for this ad - 'updated_time': When this ad was last updated - 'preview_shareable_link': Link for previewing this ad
get_ad_creative_by_idRetrieves details for a specific ad creative.
ParameterTypeDescription
creative_id *stringThe ID of the ad creative to retrieve.
fieldsarrayA list of specific fields to retrieve. If None, returns the default set of fields. Available fields include (but are not limited to): - 'account_id': Ad account ID the creative belongs to - 'actor_id': ID of the Facebook actor (page/app/person) associated with this creative - 'adlabels': Ad labels associated with this creative - 'applink_treatment': App link treatment type - 'asset_feed_spec': Specifications for dynamic ad creatives - 'authorization_category': For political ads, shows authorization category - 'body': Ad body text content - 'branded_content_sponsor_page_id': ID of the sponsor page for branded content - 'call_to_action_type': Type of call to action button - 'effective_authorization_category': Effective authorization category for the ad - 'effective_instagram_media_id': Instagram media ID used in the ad - 'effective_instagram_story_id': Instagram story ID used in the ad - 'effective_object_story_id': Object story ID used for the ad - 'id': Creative ID - 'image_hash': Hash of the image used in the creative - 'image_url': URL of the image used - 'instagram_actor_id': Instagram actor ID associated with creative (deprecated) - 'instagram_permalink_url': Instagram permalink URL - 'instagram_story_id': Instagram story ID - 'instagram_user_id': Instagram user ID associated with creative - 'link_og_id': Open Graph ID for the link - 'link_url': URL being advertised - 'name': Name of the creative in the ad account library - 'object_id': ID of the Facebook object being advertised - 'object_story_id': ID of the page post used in the ad - 'object_story_spec': Specification for the page post to create for the ad - 'object_type': Type of the object being advertised - 'object_url': URL of the object being advertised - 'platform_customizations': Custom specifications for different platforms - 'product_set_id': ID of the product set for product ads - 'status': Status of this creative (ACTIVE, IN_PROCESS, WITH_ISSUES, DELETED) - 'template_url': URL of the template used - 'thumbnail_url': URL of the creative thumbnail - 'title': Ad headline/title text - 'url_tags': URL tags appended to landing pages for tracking - 'use_page_actor_override': Use the page actor instead of ad account actor - 'video_id': ID of the video used in the ad
thumbnail_heightinteger
thumbnail_widthinteger
get_ad_creatives_by_ad_idRetrieves creatives associated with an ad.
ParameterTypeDescription
ad_id *stringThe ID of the ad to retrieve creatives for.
afterstringPagination cursor for the next page. From response['paging']['cursors']['after'].
beforestringPagination cursor for the previous page. From response['paging']['cursors']['before'].
date_formatstringFormat for date responses. Options: - 'U': Unix timestamp (seconds since epoch) - 'Y-m-d H:i:s': MySQL datetime format - None: ISO 8601 format (default)
fieldsarrayA list of specific fields to retrieve for each creative. If None, a default set of fields will be returned. Available fields include: - 'id': The creative's ID - 'name': The creative's name - 'account_id': The ID of the ad account this creative belongs to - 'actor_id': ID of the Facebook actor associated with creative - 'adlabels': Ad labels applied to the creative - 'applink_treatment': App link treatment type - 'asset_feed_spec': Specifications for dynamic ad creatives - 'authorization_category': Political ad authorization category - 'body': Ad body text content - 'branded_content_sponsor_page_id': ID of sponsoring page for branded content - 'call_to_action_type': Type of call to action button - 'effective_authorization_category': Effective authorization category - 'effective_instagram_media_id': Instagram media ID used - 'effective_instagram_story_id': Instagram story ID used - 'effective_object_story_id': Object story ID used - 'image_hash': Hash of the image used in the creative - 'image_url': URL of the image used - 'instagram_actor_id': Instagram actor ID (deprecated) - 'instagram_permalink_url': Instagram permalink URL - 'instagram_story_id': Instagram story ID - 'instagram_user_id': Instagram user ID associated with creative - 'link_og_id': Open Graph ID for the link - 'link_url': URL being advertised - 'object_id': ID of the Facebook object being advertised - 'object_story_id': ID of the page post used in the ad - 'object_story_spec': Specification for the page post - 'object_type': Type of the object being advertised ('PAGE', 'DOMAIN', etc.) - 'object_url': URL of the object being advertised - 'platform_customizations': Custom specifications for different platforms - 'product_set_id': ID of the product set for product ads - 'status': Status of this creative ('ACTIVE', 'IN_PROCESS', etc.) - 'template_url': URL of the template used - 'thumbnail_url': URL of the creative thumbnail - 'title': Ad headline/title text - 'url_tags': URL tags appended to landing pages for tracking - 'use_page_actor_override': Whether to use the page actor instead of account actor - 'video_id': ID of the video used in the ad
limitintegerMaximum number of creatives to return per page. Default is 25.
get_ad_insightsRetrieves performance insights for an ad.
ParameterTypeDescription
action_attribution_windowsarraySpecifies attribution windows for actions. Examples: '1d_view', '7d_click'. Default depends on API/settings.
action_breakdownsarraySegments 'actions' results. Examples: 'action_device', 'action_type'. Default: ['action_type'].
action_report_timestringTime basis for action stats ('impression', 'conversion', 'mixed'). Default: 'mixed'.
ad_id *stringThe ID of the target ad (ad group), e.g., '6123456789012'.
afterstringPagination cursor for the next page.
beforestringPagination cursor for the previous page.
breakdownsarraySegments results by dimensions. Examples: 'age', 'gender', 'country', 'publisher_platform', 'impression_device', 'platform_position', 'device_platform'.
date_presetstringA predefined relative time range ('last_30d', 'last_7d', etc.). Default: 'last_30d'. Ignored if 'time_range', 'time_ranges', 'since', or 'until' is used.
default_summarybooleanIf True, includes an additional summary row. Default: False.
fieldsarrayA list of specific metrics and fields. Common examples: 'ad_name', 'adset_name', 'campaign_name', 'account_id', 'impressions', 'clicks', 'spend', 'ctr', 'cpc', 'cpm', 'cpp', 'reach', 'frequency', 'actions', 'conversions', 'cost_per_action_type', 'inline_link_clicks', 'inline_post_engagement', 'unique_clicks', 'video_p25_watched_actions', 'video_p50_watched_actions', 'video_p75_watched_actions', 'video_p95_watched_actions', 'video_p100_watched_actions', 'video_avg_time_watched_actions', 'website_ctr', 'website_purchases'.
filteringarrayList of filter objects {'field': '...', 'operator': '...', 'value': '...'}.
levelstringLevel of aggregation. Should typically be 'ad'. Default: 'ad'.
limitintegerMaximum number of results per page.
localestringThe locale for text responses (e.g., 'en_US'). This controls language and formatting of text fields in the response.
offsetintegerAlternative pagination: skips N results.
sincestringStart timestamp for time-based pagination (if time ranges absent).
sortstringField and direction for sorting ('{field}_ascending'/'_descending').
time_incrementstringGranularity of the time breakdown ('all_days', 'monthly', 1-90 days). Default: 'all_days'.
time_rangeobjectSpecific time range {'since':'YYYY-MM-DD','until':'YYYY-MM-DD'}. Overrides 'date_preset'. Ignored if 'time_ranges' is provided.
time_rangesarrayArray of time range objects for comparison. Overrides 'time_range' and 'date_preset'.
untilstringEnd timestamp for time-based pagination (if time ranges absent).
use_account_attribution_settingbooleanIf True, uses the ad account's attribution settings. Default: False.
use_unified_attribution_settingbooleanIf True, uses unified attribution settings. Default: True.
get_adaccount_insightsRetrieves performance insights for an ad account.
ParameterTypeDescription
act_id *stringThe target ad account ID, prefixed with 'act_', e.g., 'act_1234567890'.
action_attribution_windowsarraySpecifies the attribution windows to consider for actions (conversions). Examples: '1d_view', '7d_view', '28d_view', '1d_click', '7d_click', '28d_click', 'dda', 'default'. The API default may vary; ['7d_click', '1d_view'] is common.
action_breakdownsarraySegments the 'actions' results based on specific dimensions. Examples: 'action_device', 'action_type', 'conversion_destination', 'action_destination'. Default: ['action_type'].
action_report_timestringDetermines when actions are counted. - 'impression': Actions are attributed to the time of the ad impression. - 'conversion': Actions are attributed to the time the conversion occurred. - 'mixed': Uses 'impression' time for paid metrics, 'conversion' time for organic. Default: 'mixed'.
afterstringA pagination cursor pointing to the next page of results. Obtained from the 'paging.cursors.after' field of a previous response.
beforestringA pagination cursor pointing to the previous page of results. Obtained from the 'paging.cursors.before' field of a previous response.
breakdownsarraySegments the results by dimensions like demographics or placement. Examples: 'age', 'gender', 'country', 'region', 'dma', 'impression_device', 'publisher_platform', 'platform_position', 'device_platform'. Note: Not all breakdowns can be combined.
date_presetstringA predefined relative time range for the report. Options: 'today', 'yesterday', 'this_month', 'last_month', 'this_quarter', 'maximum', 'last_3d', 'last_7d', 'last_14d', 'last_28d', 'last_30d', 'last_90d', 'last_week_mon_sun', 'last_week_sun_sat', 'last_quarter', 'last_year', 'this_week_mon_today', 'this_week_sun_today', 'this_year'. Default: 'last_30d'. This parameter is ignored if 'time_range', 'time_ranges', 'since', or 'until' is provided.
default_summarybooleanIf True, includes an additional summary row in the response. Default: False.
fieldsarrayA list of specific metrics and fields to retrieve. If omitted, a default set is returned by the API. Common examples include: - 'account_currency', 'account_id', 'account_name' - 'actions', 'clicks', 'conversions' - 'cpc', 'cpm', 'cpp', 'ctr' - 'frequency', 'impressions', 'reach', 'spend'.
filteringarrayA list of filter objects to apply to the data. Each object should have 'field', 'operator', and 'value' keys. Example: [{'field': 'spend', 'operator': 'GREATER_THAN', 'value': 50}].
levelstringThe level of aggregation for the insights. Options: 'account', 'campaign', 'adset', 'ad'. Default: 'account'.
limitintegerThe maximum number of results to return in one API response page.
localestringThe locale for text responses (e.g., 'en_US'). This controls language and formatting of text fields in the response.
offsetintegerAn alternative pagination method; skips the specified number of results. Use cursor-based pagination ('after'/'before') when possible.
sincestringFor time-based pagination (used if 'time_range' and 'time_ranges' are not set), the start timestamp (Unix or strtotime value).
sortstringSpecifies the field and direction for sorting the results. Format: '{field_name}_ascending' or '{field_name}_descending'. Example: 'impressions_descending'.
time_incrementstringSpecifies the granularity of the time breakdown. - An integer from 1 to 90 indicates the number of days per data point. - 'monthly': Aggregates data by month. - 'all_days': Provides a single summary row for the entire period. Default: 'all_days'.
time_rangeobjectA specific time range defined by 'since' and 'until' dates in 'YYYY-MM-DD' format, e.g., {'since': '2023-10-01', 'until': '2023-10-31'}. Overrides 'date_preset'. Ignored if 'time_ranges' is provided.
time_rangesarrayAn array of time range objects ({'since': '...', 'until': '...'}) for comparing multiple periods. Overrides 'time_range' and 'date_preset'. Time ranges can overlap.
untilstringFor time-based pagination (used if 'time_range' and 'time_ranges' are not set), the end timestamp (Unix or strtotime value).
use_account_attribution_settingbooleanIf True, forces the report to use the attribution settings defined at the ad account level. Default: False.
use_unified_attribution_settingbooleanIf True, uses the unified attribution settings defined at the ad set level. This is generally recommended for consistency with Ads Manager reporting. Default: True.
get_ads_by_adaccountRetrieves ads within an ad account.
ParameterTypeDescription
act_id *stringThe ID of the ad account to retrieve ads from, prefixed with 'act_', e.g., 'act_1234567890'.
afterstringPagination cursor for the next page. From response['paging']['cursors']['after'].
beforestringPagination cursor for the previous page. From response['paging']['cursors']['before'].
date_presetstringA predefined relative date range for selecting ads. Options include 'today', 'yesterday', 'this_week', etc.
effective_statusarrayFilter ads by their effective status. Options include: 'ACTIVE', 'PAUSED', 'DELETED', 'PENDING_REVIEW', 'DISAPPROVED', 'PREAPPROVED', 'PENDING_BILLING_INFO', 'CAMPAIGN_PAUSED', 'ARCHIVED', 'ADSET_PAUSED', 'IN_PROCESS', 'WITH_ISSUES'.
fieldsarrayA list of specific fields to retrieve for each ad. If None, a default set of fields will be returned. Common fields include: - 'id': The ad's ID - 'name': The ad's name - 'adset_id': The ID of the ad set this ad belongs to - 'campaign_id': The ID of the campaign this ad belongs to - 'creative': The ad creative details - 'status': The current status of the ad - 'effective_status': The effective status including review status - 'bid_amount': The bid amount for this ad - 'configured_status': The configured status - 'created_time': When the ad was created - 'updated_time': When the ad was last updated - 'targeting': Targeting criteria - 'conversion_specs': Conversion specs - 'recommendations': Recommendations for improving the ad - 'preview_shareable_link': Link for previewing the ad
filteringarrayA list of filter objects to apply to the data. Each object should have 'field', 'operator', and 'value' keys.
limitintegerMaximum number of ads to return per page. Default is 25.
time_rangeobjectA custom time range with 'since' and 'until' dates in 'YYYY-MM-DD' format.
updated_sinceintegerReturn ads that have been updated since this Unix timestamp.
get_ads_by_adsetRetrieves ads within an ad set.
ParameterTypeDescription
adset_id *stringThe ID of the ad set to retrieve ads from.
afterstringPagination cursor for the next page. From response['paging']['cursors']['after'].
beforestringPagination cursor for the previous page. From response['paging']['cursors']['before'].
date_formatstringFormat for date responses. Options: - 'U': Unix timestamp (seconds since epoch) - 'Y-m-d H:i:s': MySQL datetime format - None: ISO 8601 format (default)
effective_statusarrayFilter ads by their effective status. Options include: 'ACTIVE', 'PAUSED', 'DELETED', 'PENDING_REVIEW', 'DISAPPROVED', 'PREAPPROVED', 'PENDING_BILLING_INFO', 'CAMPAIGN_PAUSED', 'ARCHIVED', 'IN_PROCESS', 'WITH_ISSUES'.
fieldsarrayA list of specific fields to retrieve for each ad. If None, a default set of fields will be returned. See get_ad_by_id for a comprehensive list of available fields.
filteringarrayA list of filter objects to apply to the data. Each object should have 'field', 'operator', and 'value' keys. Operators include: 'EQUAL', 'NOT_EQUAL', 'GREATER_THAN', 'GREATER_THAN_OR_EQUAL', 'LESS_THAN', 'LESS_THAN_OR_EQUAL', 'IN_RANGE', 'NOT_IN_RANGE', 'CONTAIN', 'NOT_CONTAIN', 'IN', 'NOT_IN', 'EMPTY', 'NOT_EMPTY'.
limitintegerMaximum number of ads to return per page. Default is 25, max is 100.
get_ads_by_campaignRetrieves ads within a campaign.
ParameterTypeDescription
afterstringPagination cursor for the next page. From response['paging']['cursors']['after'].
beforestringPagination cursor for the previous page. From response['paging']['cursors']['before'].
campaign_id *stringThe ID of the campaign to retrieve ads from.
effective_statusarrayFilter ads by their effective status. Options include: 'ACTIVE', 'PAUSED', 'DELETED', 'PENDING_REVIEW', 'DISAPPROVED', 'PREAPPROVED', 'PENDING_BILLING_INFO', 'ADSET_PAUSED', 'ARCHIVED', 'IN_PROCESS', 'WITH_ISSUES'.
fieldsarrayA list of specific fields to retrieve for each ad. If None, a default set of fields will be returned. Common fields include: - 'id': The ad's ID - 'name': The ad's name - 'adset_id': The ID of the ad set this ad belongs to - 'creative': The ad creative details - 'status': The current status of the ad - 'effective_status': The effective status including review status - 'bid_amount': The bid amount for this ad - 'created_time': When the ad was created - 'updated_time': When the ad was last updated - 'targeting': Targeting criteria - 'preview_shareable_link': Link for previewing the ad
filteringarrayA list of filter objects to apply to the data. Each object should have 'field', 'operator', and 'value' keys.
limitintegerMaximum number of ads to return per page. Default is 25.
get_adset_by_idRetrieves details for a specific ad set.
ParameterTypeDescription
adset_id *stringThe ID of the ad set to retrieve information for.
fieldsarrayA list of specific fields to retrieve. If None, a default set of fields will be returned. Available fields include: - 'id': The ad set's ID - 'name': The ad set's name - 'account_id': The ID of the ad account this ad set belongs to - 'campaign_id': The ID of the campaign this ad set belongs to - 'bid_amount': The bid amount for this ad set - 'bid_strategy': Strategy used for bidding. Options include: 'LOWEST_COST_WITHOUT_CAP', 'LOWEST_COST_WITH_BID_CAP', 'COST_CAP' - 'billing_event': The billing event type. Options include: 'APP_INSTALLS', 'CLICKS', 'IMPRESSIONS', 'LINK_CLICKS', 'NONE', 'OFFER_CLAIMS', 'PAGE_LIKES', 'POST_ENGAGEMENT', 'THRUPLAY' - 'budget_remaining': The remaining budget for this ad set (in cents/smallest currency unit) - 'configured_status': The status set by the user. Options include: 'ACTIVE', 'PAUSED', 'DELETED', 'ARCHIVED' - 'created_time': When the ad set was created - 'daily_budget': The daily budget for this ad set (in cents/smallest currency unit) - 'daily_min_spend_target': The minimum daily spend target (in cents/smallest currency unit) - 'daily_spend_cap': The daily spend cap (in cents/smallest currency unit) - 'destination_type': Type of destination for the ads - 'effective_status': The effective status (actual status). Options include: 'ACTIVE', 'PAUSED', 'DELETED', 'PENDING_REVIEW', 'DISAPPROVED', 'PREAPPROVED', 'PENDING_BILLING_INFO', 'CAMPAIGN_PAUSED', 'ARCHIVED', 'ADSET_PAUSED', 'IN_PROCESS', 'WITH_ISSUES' - 'end_time': When the ad set will end (in ISO 8601 format) - 'frequency_control_specs': Specifications for frequency control - 'lifetime_budget': The lifetime budget (in cents/smallest currency unit) - 'lifetime_imps': The maximum number of lifetime impressions - 'lifetime_min_spend_target': The minimum lifetime spend target - 'lifetime_spend_cap': The lifetime spend cap - 'optimization_goal': The optimization goal for this ad set. Options include: 'APP_INSTALLS', 'BRAND_AWARENESS', 'CLICKS', 'ENGAGED_USERS', 'EVENT_RESPONSES', 'IMPRESSIONS', 'LEAD_GENERATION', 'LINK_CLICKS', 'NONE', 'OFFER_CLAIMS', 'OFFSITE_CONVERSIONS', 'PAGE_ENGAGEMENT', 'PAGE_LIKES', 'POST_ENGAGEMENT', 'QUALITY_LEAD', 'REACH', 'REPLIES', 'SOCIAL_IMPRESSIONS', 'THRUPLAY', 'VALUE', 'VISIT_INSTAGRAM_PROFILE' - 'pacing_type': List of pacing types. Options include: 'standard', 'no_pacing' - 'promoted_object': The object this ad set is promoting - 'recommendations': Recommendations for improving this ad set - 'rf_prediction_id': The Reach and Frequency prediction ID - 'source_adset_id': ID of the source ad set if this is a copy - 'start_time': When the ad set starts (in ISO 8601 format) - 'status': Deprecated. The ad set's status. Use 'effective_status' instead. - 'targeting': The targeting criteria for this ad set (complex object) - 'time_based_ad_rotation_id_blocks': Time-based ad rotation blocks - 'time_based_ad_rotation_intervals': Time-based ad rotation intervals in seconds - 'updated_time': When this ad set was last updated - 'use_new_app_click': Whether to use the newer app click tracking
get_adset_insightsRetrieves performance insights for an ad set.
ParameterTypeDescription
action_attribution_windowsarraySpecifies attribution windows for actions. Examples: '1d_view', '7d_click'. Default depends on API/settings.
action_breakdownsarraySegments 'actions' results. Examples: 'action_device', 'action_type'. Default: ['action_type'].
action_report_timestringTime basis for action stats ('impression', 'conversion', 'mixed'). Default: 'mixed'.
adset_id *stringThe ID of the target ad set, e.g., '6123456789012'.
afterstringPagination cursor for the next page.
beforestringPagination cursor for the previous page.
breakdownsarraySegments results by dimensions. Examples: 'age', 'gender', 'country', 'publisher_platform', 'impression_device', 'platform_position'.
date_presetstringA predefined relative time range ('last_30d', 'last_7d', etc.). Default: 'last_30d'. Ignored if 'time_range', 'time_ranges', 'since', or 'until' is used.
default_summarybooleanIf True, includes an additional summary row. Default: False.
fieldsarrayA list of specific metrics and fields. Common examples: 'adset_name', 'campaign_name', 'account_id', 'impressions', 'clicks', 'spend', 'ctr', 'reach', 'frequency', 'actions', 'conversions', 'cpc', 'cpm', 'cpp', 'cost_per_action_type', 'video_p25_watched_actions', 'website_purchases'.
filteringarrayList of filter objects {'field': '...', 'operator': '...', 'value': '...'}.
levelstringLevel of aggregation ('adset', 'ad'). Default: 'adset'.
limitintegerMaximum number of results per page.
localestringThe locale for text responses (e.g., 'en_US'). This controls language and formatting of text fields in the response.
offsetintegerAlternative pagination: skips N results.
sincestringStart timestamp for time-based pagination (if time ranges absent).
sortstringField and direction for sorting ('{field}_ascending'/'_descending').
time_incrementstringGranularity of the time breakdown ('all_days', 'monthly', 1-90 days). Default: 'all_days'.
time_rangeobjectSpecific time range {'since':'YYYY-MM-DD','until':'YYYY-MM-DD'}. Overrides 'date_preset'. Ignored if 'time_ranges' is provided.
time_rangesarrayArray of time range objects for comparison. Overrides 'time_range' and 'date_preset'.
untilstringEnd timestamp for time-based pagination (if time ranges absent).
use_account_attribution_settingbooleanIf True, uses the ad account's attribution settings. Default: False.
use_unified_attribution_settingbooleanIf True, uses unified attribution settings. Default: True.
get_adsets_by_adaccountRetrieves ad sets within an ad account.
ParameterTypeDescription
act_id *stringThe ID of the ad account to retrieve ad sets from, prefixed with 'act_', e.g., 'act_1234567890'.
afterstringPagination cursor for the next page. From response['paging']['cursors']['after'].
beforestringPagination cursor for the previous page. From response['paging']['cursors']['before'].
date_formatstringFormat for date responses. Options: - 'U': Unix timestamp (seconds since epoch) - 'Y-m-d H:i:s': MySQL datetime format - None: ISO 8601 format (default)
date_presetstringA predefined relative date range for selecting ad sets. Options include: 'today', 'yesterday', 'this_month', 'last_month', 'this_quarter', 'lifetime', 'last_3d', 'last_7d', 'last_14d', 'last_28d', 'last_30d', 'last_90d', 'last_quarter', 'last_year', 'this_week_mon_today', 'this_week_sun_today', 'this_year'.
effective_statusarrayFilter ad sets by their effective status. Options include: 'ACTIVE', 'PAUSED', 'DELETED', 'PENDING_REVIEW', 'DISAPPROVED', 'PREAPPROVED', 'PENDING_BILLING_INFO', 'CAMPAIGN_PAUSED', 'ARCHIVED', 'WITH_ISSUES'.
fieldsarrayA list of specific fields to retrieve for each ad set. If None, a default set of fields will be returned. See get_adset_by_id for a comprehensive list of available fields.
filteringarrayA list of filter objects to apply to the data. Each object should have 'field', 'operator', and 'value' keys. Operators include: 'EQUAL', 'NOT_EQUAL', 'GREATER_THAN', 'GREATER_THAN_OR_EQUAL', 'LESS_THAN', 'LESS_THAN_OR_EQUAL', 'IN_RANGE', 'NOT_IN_RANGE', 'CONTAIN', 'NOT_CONTAIN', 'IN', 'NOT_IN', 'EMPTY', 'NOT_EMPTY'. Example: [{'field': 'daily_budget', 'operator': 'GREATER_THAN', 'value': 1000}]
limitintegerMaximum number of ad sets to return per page. Default is 25, max is 100.
time_rangeobjectA custom time range with 'since' and 'until' dates in 'YYYY-MM-DD' format. Example: {'since': '2023-01-01', 'until': '2023-01-31'}
updated_sinceintegerReturn ad sets that have been updated since this Unix timestamp.
get_adsets_by_campaignRetrieves ad sets within a campaign.
ParameterTypeDescription
afterstringPagination cursor for the next page. From response['paging']['cursors']['after'].
beforestringPagination cursor for the previous page. From response['paging']['cursors']['before'].
campaign_id *stringThe ID of the campaign to retrieve ad sets from.
date_formatstringFormat for date responses. Options: - 'U': Unix timestamp (seconds since epoch) - 'Y-m-d H:i:s': MySQL datetime format - None: ISO 8601 format (default)
effective_statusarrayFilter ad sets by their effective status. Options include: 'ACTIVE', 'PAUSED', 'DELETED', 'PENDING_REVIEW', 'DISAPPROVED', 'PREAPPROVED', 'PENDING_BILLING_INFO', 'ARCHIVED', 'WITH_ISSUES'.
fieldsarrayA list of specific fields to retrieve for each ad set. If None, a default set of fields will be returned. See get_adset_by_id for a comprehensive list of available fields.
filteringarrayA list of filter objects to apply to the data. Each object should have 'field', 'operator', and 'value' keys. Operators include: 'EQUAL', 'NOT_EQUAL', 'GREATER_THAN', 'GREATER_THAN_OR_EQUAL', 'LESS_THAN', 'LESS_THAN_OR_EQUAL', 'IN_RANGE', 'NOT_IN_RANGE', 'CONTAIN', 'NOT_CONTAIN', 'IN', 'NOT_IN', 'EMPTY', 'NOT_EMPTY'. Example: [{'field': 'daily_budget', 'operator': 'GREATER_THAN', 'value': 1000}]
limitintegerMaximum number of ad sets to return per page. Default is 25, max is 100.
get_adsets_by_idsRetrieves details for multiple ad sets by their IDs.
ParameterTypeDescription
adset_ids *arrayA list of ad set IDs to retrieve information for.
date_formatstringFormat for date responses. Options: - 'U': Unix timestamp (seconds since epoch) - 'Y-m-d H:i:s': MySQL datetime format - None: ISO 8601 format (default)
fieldsarrayA list of specific fields to retrieve for each ad set. If None, a default set of fields will be returned. See get_adset_by_id for a comprehensive list of available fields.
get_campaign_by_idRetrieves details for a specific campaign.
ParameterTypeDescription
campaign_id *stringThe ID of the campaign to retrieve information for.
date_formatstringFormat for date responses. Options: - 'U': Unix timestamp (seconds since epoch) - 'Y-m-d H:i:s': MySQL datetime format - None: ISO 8601 format (default)
fieldsarrayA list of specific fields to retrieve. If None, a default set of fields will be returned. Available fields include: - 'id': The campaign's ID - 'name': The campaign's name - 'account_id': The ID of the ad account this campaign belongs to - 'adlabels': Labels applied to the campaign - 'bid_strategy': The bid strategy for the campaign. Options include: 'LOWEST_COST_WITHOUT_CAP', 'LOWEST_COST_WITH_BID_CAP', 'COST_CAP' - 'boosted_object_id': The ID of the boosted object - 'brand_lift_studies': Brand lift studies associated with this campaign - 'budget_rebalance_flag': Whether budget rebalancing is enabled - 'budget_remaining': The remaining budget (in cents/smallest currency unit) - 'buying_type': The buying type. Options include: 'AUCTION', 'RESERVED', 'DEPRECATED_REACH_BLOCK' - 'can_create_brand_lift_study': Whether a brand lift study can be created - 'can_use_spend_cap': Whether a spend cap can be used - 'configured_status': Status set by the user. Options include: 'ACTIVE', 'PAUSED', 'DELETED', 'ARCHIVED' - 'created_time': When the campaign was created - 'daily_budget': The daily budget (in cents/smallest currency unit) - 'effective_status': The effective status accounting for the ad account and other factors. Options include: 'ACTIVE', 'PAUSED', 'DELETED', 'PENDING_REVIEW', 'DISAPPROVED', 'PREAPPROVED', 'PENDING_BILLING_INFO', 'CAMPAIGN_PAUSED', 'ARCHIVED', 'IN_PROCESS', 'WITH_ISSUES' - 'has_secondary_skadnetwork_reporting': Whether secondary SKAdNetwork reporting is available - 'is_budget_schedule_enabled': Whether budget scheduling is enabled - 'is_skadnetwork_attribution': Whether the campaign uses SKAdNetwork attribution (iOS 14.5+) - 'issues_info': Information about issues with this campaign - 'last_budget_toggling_time': Last time the budget was toggled - 'lifetime_budget': The lifetime budget (in cents/smallest currency unit) - 'objective': The campaign's advertising objective. Options include: 'APP_INSTALLS', 'BRAND_AWARENESS', 'CONVERSIONS', 'EVENT_RESPONSES', 'LEAD_GENERATION', 'LINK_CLICKS', 'LOCAL_AWARENESS', 'MESSAGES', 'OFFER_CLAIMS', 'PAGE_LIKES', 'POST_ENGAGEMENT', 'PRODUCT_CATALOG_SALES', 'REACH', 'STORE_VISITS', 'VIDEO_VIEWS' - 'pacing_type': List of pacing types. Options include: 'standard', 'no_pacing' - 'primary_attribution': Primary attribution settings - 'promoted_object': The object this campaign is promoting - 'recommendations': Recommendations for improving this campaign - 'smart_promotion_type': Smart promotion type if applicable - 'source_campaign': Source campaign if this was created by copying - 'source_campaign_id': ID of the source campaign if copied - 'special_ad_categories': Array of special ad categories. Options include: 'EMPLOYMENT', 'HOUSING', 'CREDIT', 'ISSUES_ELECTIONS_POLITICS', 'NONE' - 'special_ad_category': Special ad category (deprecated in favor of special_ad_categories) - 'spend_cap': The spending cap (in cents/smallest currency unit) - 'start_time': When the campaign starts (in ISO 8601 format unless date_format specified) - 'status': Deprecated. Use 'configured_status' or 'effective_status' instead - 'stop_time': When the campaign stops (in ISO 8601 format unless date_format specified) - 'topline_id': Topline ID for this campaign - 'updated_time': When this campaign was last updated
get_campaign_insightsRetrieves performance insights for a campaign.
ParameterTypeDescription
action_attribution_windowsarraySpecifies attribution windows for actions. Examples: '1d_view', '7d_click', '28d_click', etc. Default depends on API/settings.
action_breakdownsarraySegments 'actions' results. Examples: 'action_device', 'action_type'. Default: ['action_type'].
action_report_timestringDetermines when actions are counted ('impression', 'conversion', 'mixed'). Default: 'mixed'.
afterstringPagination cursor for the next page.
beforestringPagination cursor for the previous page.
breakdownsarraySegments results by dimensions. Examples: 'age', 'gender', 'country', 'publisher_platform', 'impression_device'.
campaign_id *stringThe ID of the target Facebook ad campaign, e.g., '23843xxxxx'.
date_presetstringA predefined relative time range for the report. Options: 'today', 'yesterday', 'this_month', 'last_month', 'this_quarter', 'maximum', 'last_3d', 'last_7d', 'last_14d', 'last_28d', 'last_30d', 'last_90d', 'last_week_mon_sun', 'last_week_sun_sat', 'last_quarter', 'last_year', 'this_week_mon_today', 'this_week_sun_today', 'this_year'. Default: 'last_30d'. Ignored if 'time_range', 'time_ranges', 'since', or 'until' is used.
default_summarybooleanIf True, includes an additional summary row. Default: False.
fieldsarrayA list of specific metrics and fields to retrieve. Common examples: 'campaign_name', 'account_id', 'impressions', 'clicks', 'spend', 'ctr', 'reach', 'actions', 'objective', 'cost_per_action_type', 'conversions', 'cpc', 'cpm', 'cpp', 'frequency', 'date_start', 'date_stop'.
filteringarrayList of filter objects {'field': '...', 'operator': '...', 'value': '...'}.
levelstringLevel of aggregation ('campaign', 'adset', 'ad'). Default: 'campaign'.
limitintegerMaximum number of results per page.
localestringThe locale for text responses (e.g., 'en_US'). This controls language and formatting of text fields in the response.
offsetintegerAlternative pagination: skips N results.
sincestringStart timestamp for time-based pagination (if time ranges absent).
sortstringField and direction for sorting ('{field}_ascending'/'_descending').
time_incrementstringSpecifies the granularity of the time breakdown. - Integer (1-90): number of days per data point. - 'monthly': Aggregates data by month. - 'all_days': Single summary row for the period. Default: 'all_days'.
time_rangeobjectA specific time range {'since':'YYYY-MM-DD','until':'YYYY-MM-DD'}. Overrides 'date_preset'. Ignored if 'time_ranges' is provided.
time_rangesarrayAn array of time range objects for comparison. Overrides 'time_range' and 'date_preset'.
untilstringEnd timestamp for time-based pagination (if time ranges absent).
use_account_attribution_settingbooleanIf True, uses the ad account's attribution settings. Default: False.
use_unified_attribution_settingbooleanIf True, uses unified attribution settings. Default: True.
get_campaigns_by_adaccountRetrieves campaigns within an ad account.
ParameterTypeDescription
act_id *stringThe ID of the ad account to retrieve campaigns from, prefixed with 'act_', e.g., 'act_1234567890'.
afterstringPagination cursor for the next page. From response['paging']['cursors']['after'].
beforestringPagination cursor for the previous page. From response['paging']['cursors']['before'].
buyer_guarantee_agreement_statusarrayFilter campaigns by buyer guarantee agreement status. Options include: 'APPROVED', 'NOT_APPROVED'.
date_formatstringFormat for date responses. Options: - 'U': Unix timestamp (seconds since epoch) - 'Y-m-d H:i:s': MySQL datetime format - None: ISO 8601 format (default)
date_presetstringA predefined relative date range for selecting campaigns. Options include: 'today', 'yesterday', 'this_month', 'last_month', 'this_quarter', 'maximum', 'last_3d', 'last_7d', 'last_14d', 'last_28d', 'last_30d', 'last_90d', 'last_week_mon_sun', 'last_week_sun_sat', 'last_quarter', 'last_year', 'this_week_mon_today', 'this_week_sun_today', 'this_year'.
effective_statusarrayFilter campaigns by their effective status. Options include: 'ACTIVE', 'PAUSED', 'DELETED', 'PENDING_REVIEW', 'DISAPPROVED', 'PREAPPROVED', 'PENDING_BILLING_INFO', 'ARCHIVED', 'WITH_ISSUES'.
fieldsarrayA list of specific fields to retrieve for each campaign. If None, a default set of fields will be returned. See get_campaign_by_id for a comprehensive list of available fields.
filteringarrayA list of filter objects to apply to the data. Each object should have 'field', 'operator', and 'value' keys. Operators include: 'EQUAL', 'NOT_EQUAL', 'GREATER_THAN', 'GREATER_THAN_OR_EQUAL', 'LESS_THAN', 'LESS_THAN_OR_EQUAL', 'IN_RANGE', 'NOT_IN_RANGE', 'CONTAIN', 'NOT_CONTAIN', 'IN', 'NOT_IN', 'EMPTY', 'NOT_EMPTY'. Example: [{'field': 'daily_budget', 'operator': 'GREATER_THAN', 'value': 1000}]
include_draftsbooleanIf True, includes draft campaigns in the results.
is_completedbooleanIf True, returns only completed campaigns. If False, returns only active campaigns. If None, returns both.
limitintegerMaximum number of campaigns to return per page. Default is 25, max is 100.
objectivearrayFilter campaigns by advertising objective. Options include: 'APP_INSTALLS', 'BRAND_AWARENESS', 'CONVERSIONS', 'EVENT_RESPONSES', 'LEAD_GENERATION', 'LINK_CLICKS', 'LOCAL_AWARENESS', 'MESSAGES', 'OFFER_CLAIMS', 'PAGE_LIKES', 'POST_ENGAGEMENT', 'PRODUCT_CATALOG_SALES', 'REACH', 'STORE_VISITS', 'VIDEO_VIEWS'.
special_ad_categoriesarrayFilter campaigns by special ad categories. Options include: 'EMPLOYMENT', 'HOUSING', 'CREDIT', 'ISSUES_ELECTIONS_POLITICS', 'NONE'.
time_rangeobjectA custom time range with 'since' and 'until' dates in 'YYYY-MM-DD' format. Example: {'since': '2023-01-01', 'until': '2023-01-31'}
updated_sinceintegerReturn campaigns that have been updated since this Unix timestamp.
get_details_of_ad_accountRetrieves details for a specific ad account.
ParameterTypeDescription
act_id *stringThe act ID of the ad account, example: act_1234567890
fieldsarrayThe fields to get from the ad account. If None, defaults are used. Available fields include: name, business_name, age, account_status, balance, amount_spent, attribution_spec, account_id, business, business_city, brand_safety_content_filter_levels, currency, created_time, id.
list_ad_accountsLists ad accounts linked to the token.

Security checks

Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 795 words.
  • ✓License declaredThe repository declares the MIT license.
  • !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
  • !Dependencies pinnedNo lockfile anywhere in the repository. Installs can pull different code over time.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

1 check has not been run yet.

README

The repository's README runs to about 795 words, fetched 2 days ago. The original in the repository is authoritative.

Read full README
Questions

About gomarble-ai/facebook-ads-mcp-server

How do I install gomarble-ai/facebook-ads-mcp-server?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is gomarble-ai/facebook-ads-mcp-server safe to use with an AI agent?

Its trust score is 62 out of 100 (good). It passes 2 of the 5 static checks Conduid ran on the repository; it does not pass Tests present, Dependencies pinned and Scoped permissions. It has no ConduID identity yet, so agent calls to it are not receipted.

Is gomarble-ai/facebook-ads-mcp-server still maintained?

Yes — the last commit was 3 months ago. The repository has 370 stars and 112 forks and 6 open issues.

What tools does gomarble-ai/facebook-ads-mcp-server provide?

Conduid read 21 tools from the source: fetch_pagination_url, get_activities_by_adaccount, get_activities_by_adset, get_ad_by_id, get_ad_creative_by_id, get_ad_creatives_by_ad_id, get_ad_insights, get_adaccount_insights and 13 more. 20 of them publish their parameters, listed under Tools above.

What license is gomarble-ai/facebook-ads-mcp-server released under?

The repository declares the MIT license.