Track MCP LogoTrack MCP
Track MCP LogoTrack MCP

The world's largest repository of Model Context Protocol servers. Discover, explore, and submit MCP tools.

Product

  • Categories
  • Top MCP
  • New & Updated
  • Submit MCP

Company

  • About

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2026 TrackMCP. All rights reserved.

Built with ❤️ by Krishna Goyal

    Go Mcp

    Make your own MCP servers with Golang

    0 stars
    Go
    Updated Jun 12, 2025

    Table of Contents

    • Status
    • Install
    • Configuration
    • Use with an MCP client
    • Tools
    • Architecture
    • Roadmap
    • Note on the repository name
    • Development
    • License

    Table of Contents

    • Status
    • Install
    • Configuration
    • Use with an MCP client
    • Tools
    • Architecture
    • Roadmap
    • Note on the repository name
    • Development
    • License

    Documentation

    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](https://github.com/modelcontextprotocol/go-sdk)

    (maintained with Google) and [mark3labs/mcp-go](https://github.com/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

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

    Or build from source:

    bash
    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

    json
    {
      "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

    code
    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](https://github.com/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

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

    License

    MIT — see LICENSE.

    Similar MCP

    Based on tags & features

    • MC

      Mcpjungle

      Go·
      617
    • AN

      Anyquery

      Go·
      1.4k
    • YU

      Yutu

      Go·
      317
    • MC

      Mcp Cyclops

      Go·
      29

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k
    View All MCP Servers

    Similar MCP

    Based on tags & features

    • MC

      Mcpjungle

      Go·
      617
    • AN

      Anyquery

      Go·
      1.4k
    • YU

      Yutu

      Go·
      317
    • MC

      Mcp Cyclops

      Go·
      29

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k