Ocean Engine MCP server

Ocean Engine MCP server

go-mcp-virgoc0der•byvirgoc0der

An MCP server exposing Ocean Engine (ByteDance's advertising platform) tools so AI agents can query advertiser accounts, campaigns, ads and performance reports, and optionally adjust campaign status and budget.

License: MIT•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Provides read tools to get advertiser account info, list campaigns, list ads and fetch performance reports by date range and dimensions.
  • •Offers write tools to enable, disable or delete campaigns and to set campaign budgets when writes are explicitly enabled.
  • •Supports transparent OAuth access token refresh using app credentials and a refresh token.
  • •Runs as a stdio MCP server configured via environment variables.

BEST FOR

  • •AI agents that need to inspect Ocean Engine advertiser accounts, campaigns, ads and performance data.
  • •Teams wanting controlled, opt-in automation of campaign status and budget changes on Ocean Engine.

ABOUT GO-MCP-VIRGOC0DER

Ocean Engine MCP server is cataloged as an MCP server attributed to virgoc0der. An MCP server exposing Ocean Engine (ByteDance's advertising platform) tools so AI agents can query advertiser accounts, campaigns, ads and performance reports, and optionally adjust campaign status and budget. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Ocean Engine MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Are the write tools enabled by default?

No. Mutating tools are only registered when OCEANENGINE_ENABLE_WRITES is set.

How does token refresh work?

With app credentials and a refresh token set, the server refreshes access tokens transparently before expiry and tracks the rotated refresh token in memory.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 00bf6ed404e0 · 采集于 2026-11-13 13:28:40 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

oceanengine-mcp

CI

A Model Context Protocol (MCP) server for Ocean Engine (巨量引擎) — ByteDance's domestic advertising platform (巨量广告 / 巨量千川 / 本地推 / 星图). It lets AI agents query advertiser accounts, campaigns, ads and performance reports — and, when explicitly enabled, adjust campaign status and budget — over the standard MCP interface.

Why this exists. The "general-purpose Go MCP SDK" question is settled: the official modelcontextprotocol/go-sdk (maintained with Google) and mark3labs/mcp-go own that space. The open niche is vertical MCP servers. Google Ads and Meta Ads already have MCP servers (and TikTok Ads has several), but Ocean Engine — the domestic Chinese platform — has none. This project fills that gap, and is built on top of the official SDK rather than reimplementing the protocol.

Status

Early but functional. The MCP layer is fully working (verified end-to-end via the in-memory transport and a stdio smoke test); the Ocean Engine client implements the documented Marketing API endpoints. Hitting the live API requires a valid access_token from the Ocean Engine open platform.

Install

go install github.com/virgoC0der/go-mcp/cmd/oceanengine-mcp@latest

Or build from source:

make build   # produces ./bin/oceanengine-mcp

Configuration

The server is configured via environment variables.

Authentication — choose one of two modes:

Static token (you manage refresh yourself):

VariableDescription
OCEANENGINE_ACCESS_TOKENOAuth access token from the Ocean Engine open platform

Auto-refresh (recommended — access tokens last ~1 day): supply app credentials and a refresh token and the server refreshes transparently before expiry. Ocean Engine rotates the refresh token on every refresh, so the server tracks the latest one in memory for its lifetime.

VariableRequiredDescription
OCEANENGINE_APP_IDyesdeveloper app ID (numeric)
OCEANENGINE_APP_SECRETyesdeveloper app secret
OCEANENGINE_REFRESH_TOKENyesOAuth refresh token (valid ~30 days)
OCEANENGINE_ACCESS_TOKENnocurrent access token, if you have a fresh one
OCEANENGINE_ACCESS_TOKEN_EXPIRES_INnoremaining lifetime in seconds; omit to refresh on first use

Auto-refresh mode activates when OCEANENGINE_APP_ID, OCEANENGINE_APP_SECRET and OCEANENGINE_REFRESH_TOKEN are all set; otherwise the server falls back to the static OCEANENGINE_ACCESS_TOKEN.

Persisting the rotated refresh token across restarts: when embedding the package, pass oceanengine.WithOnRefresh(...) to NewRefreshingTokenSource to receive each new token pair and store it.

Other options:

VariableRequiredDescription
OCEANENGINE_BASE_URLnoAPI host override (defaults to https://api.oceanengine.com)
OCEANENGINE_ENABLE_WRITESnoset to 1/true to register the mutating tools (off by default)

Use with an MCP client

{
  "mcpServers": {
    "oceanengine": {
      "command": "oceanengine-mcp",
      "env": { "OCEANENGINE_ACCESS_TOKEN": "your-token" }
    }
  }
}

Tools

Read tools (always available):

ToolOcean Engine endpointPurpose
oceanengine_get_advertiser_infoGET /2/advertiser/info/account info by advertiser ID
oceanengine_list_campaignsGET /2/campaign/get/list campaigns (广告组), paginated
oceanengine_list_adsGET /2/ad/get/list ads (广告计划), paginated
oceanengine_get_reportGET /2/report/ad/get/performance report by date range/dimensions

Write tools (only when OCEANENGINE_ENABLE_WRITES is set — they mutate the live account):

ToolOcean Engine endpointPurpose
oceanengine_update_campaign_statusPOST /2/campaign/update/status/enable / disable / delete campaigns
oceanengine_update_campaign_budgetPOST /2/campaign/update/budget/set a campaign budget

Architecture

cmd/oceanengine-mcp     entrypoint: reads env, runs MCP over stdio
internal/mcpserver      registers tools on the official go-sdk; no protocol code
internal/oceanengine    thin Marketing API client (auth, envelope, endpoints)

The Ocean Engine client is deliberately thin and dependency-light. To broaden endpoint coverage later, its methods can be backed by the much larger community SDK bububa/oceanengine without touching the MCP tool layer.

Roadmap

  • OAuth token refresh ✅ done (auto-refresh token source)
  • 千川 (Qianchuan) e-commerce ad endpoints
  • Broader report dimensions/metrics and async report export
  • Optional bububa/oceanengine backend for full endpoint coverage

Note on the repository name

This project currently lives in the go-mcp repository for historical reasons. The intended home is a dedicated oceanengine-mcp repository — renaming the repo (which preserves stars and history) updates the import path accordingly.

Development

make test    # go test ./...
make vet     # go vet ./...
make build   # build the binary

License

MIT — see LICENSE.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Ocean Engine MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/go-mcp-virgoc0der)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research