Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TIKTOK_ADS_HOMENoFolder for secrets, logs and .env.~/.tiktok-ads-mcp
TIKTOK_ADS_HOSTNoHTTP transport bind host.127.0.0.1
TIKTOK_ADS_PORTNoHTTP transport bind port.8000
TIKTOK_ADS_BC_IDNoDefault Business Center for catalog tools.
TIKTOK_ADS_APP_IDNoDeveloper app ID. Required for auth, listing ad accounts, and purge --revoke.
TIKTOK_ADS_DRY_RUNNoSet to true to preview writes without sending them.
TIKTOK_ADS_MAX_BIDNoOptional absolute bid cap in the account currency.
TIKTOK_ADS_MAX_QPSNoRequests per second this server sends.10
TIKTOK_ADS_TIMEOUTNoRequest timeout in seconds.30
TIKTOK_ADS_AUDIT_LOGNoAudit log path.~/.tiktok-ads-mcp/logs/audit.jsonl
TIKTOK_ADS_LOG_LEVELNoLog level: DEBUG, INFO, WARNING or ERROR.
TIKTOK_ADS_PAGE_SIZENoList page size.100
TIKTOK_ADS_READ_ONLYNoSet to true to register only read-only tools.
TIKTOK_ADS_TRANSPORTNoTransport: stdio, streamable-http, or sse.stdio
TIKTOK_ADS_APP_SECRETNoDeveloper app secret. Required for auth, listing ad accounts, and purge --revoke.
TIKTOK_ADS_MAX_BUDGETNoOptional absolute budget cap in the account currency.
TIKTOK_ADS_TOKEN_FILENoToken file written by auth.~/.tiktok-ads-mcp/secrets/tiktok-ads-token.json
TIKTOK_ADS_TOOL_GROUPSNoComma-separated tool groups: accounts, campaigns, smart_plus, creatives, audiences, targeting, pixels, catalogs, reporting, request.
TIKTOK_ADS_ACCESS_TOKENNoThe access token itself, instead of the token file.
TIKTOK_ADS_ALLOW_REMOTENoSet to true (or use --allow-remote) to let HTTP transports bind to a non-loopback address.
TIKTOK_ADS_ADVERTISER_IDNoDefault ad account. Set automatically when the token has only one.
TIKTOK_ADS_BULK_THRESHOLDNoItems per write before confirm="APPLY" is needed.10
TIKTOK_ADS_MAX_DOWNLOAD_MBNoLargest report file it will download, in MB.200
TIKTOK_ADS_MAX_INCREASE_PCTNoBid or budget rise percentage that needs confirm="APPLY".20
TIKTOK_ADS_AUDIT_RETENTION_DAYSNoDays to keep audit entries, pruned at startup. 0 keeps them.30
TIKTOK_ADS_ALLOWED_ADVERTISER_IDSNoComma-separated ad accounts the server may touch. Defaults to all the token can reach.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources