mcp-walmart-ads
About
MCP server for Walmart Connect Ads (Sponsored Search + Display) — automatic RSA-SHA256 signing, multi-region config, and bundled API docs.
Details
- Author
- alyiox
- Categories
- Productivity, Other, API, Marketing
Jump to
Setup
Install mcp-walmart-ads in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/alyiox/mcp-walmart-ads
Follow the installation instructions in the repository README, then restart your MCP client.
MCP server for Walmart Connect Ads (Sponsored Search + Display) — automatic RSA-SHA256 signing, multi-region config, and bundled API docs.
MCP server forWalmart Connect Ads APIs— Sponsored Search and Display.
Exposes spec-driven discovery (list_endpoints,describe_endpoint), a generic API proxy (call_endpoint), a runtime spec refresher (refresh_specs), and a display-snapshot downloader (download_display_snapshot). The AI agent discovers endpoints from bundled OpenAPI specs then calls them; the server handles RSA-SHA256 signing and auth headers automatically.
- Spec-driven discovery— list/describe endpoints from bundled OpenAPI specs, refreshable at runtime
- Any endpoint— call by operation id or raw method+path (raw path reaches unpublished endpoints); no code changes when APIs evolve
- Supports both Sponsored Search and Display API families
- Multi-region, multi-environment (production + staging) via config file
- Per-request RSA-SHA256 signing with automatic header construction
- Large responses truncated with full data available via MCP resource URI
- Bundled OpenAPI specs (refreshable at runtime) give the agent endpoint schemas on demand
- Python 3.13+
- Walmart Connect Partner Network credentials (consumer ID, RSA key pair, bearer token)
Set up your config (seeConfiguration), then run the server:
# Run directly with uvx (no clone needed) npx -y @modelcontextprotocol/inspector uvx mcp-walmart-ads
# Or run from source git clone https://github.com/alyiox/mcp-walmart-ads.git cd mcp-walmart-ads uv sync npx -y @modelcontextprotocol/inspector uv run mcp-walmart-ads
The config file lives under your home directory at~/.config/mcp-walmart-ads/config.json.
Windows note:~maps to%USERPROFILE%(typicallyC:\Users\<you>), so the full path is%USERPROFILE%\.config\mcp-walmart-ads\config.json.
1. Create the config directory and copy the example
# Unix-like (macOS, Linux, WSL, …) mkdir -p ~/.config/mcp-walmart-ads/keys/us cp config.example.json ~/.config/mcp-walmart-ads/config.json
# Windows (PowerShell) New-Item -ItemType Directory -Force "$env:USERPROFILE\.config\mcp-walmart-ads\keys\us" Copy-Item config.example.json "$env:USERPROFILE\.config\mcp-walmart-ads\config.json"
2. Edit~/.config/mcp-walmart-ads/config.json
{ "response_cache_ttl": 3600, "truncate_threshold": 1024, "regions": { "US": { "production": { "consumer_id": "your-consumer-id", "private_key": "./keys/us/prod.pem", "private_key_version": "1", "bearer_token": "your-bearer-token", "base_urls": { "search": "https://developer.api.walmart.com/api-proxy/service/WPA/Api/v1", "display": "https://developer.api.walmart.com/api-proxy/service/display/api/v1" } }, "staging": { "consumer_id": "your-staging-consumer-id", "private_key": "./keys/us/staging.pem", "private_key_version": "1", "bearer_token": "your-staging-bearer-token", "base_urls": { "search": "https://developer.api.stg.walmart.com/api-proxy/service/WPA/Api/v1", "display": "https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1" } } } } }
3. Place your RSA private key PEM files in~/.config/mcp-walmart-ads/keys/
Key paths in the config are resolved relative to the config directory, so./keys/us/prod.pemresolves to~/.config/mcp-walmart-ads/keys/us/prod.pem.
config.example.jsonalso includes aCAregion that uses the same API hosts asUS. Select the WAP market with the per-calltenantparameter (see below), not via different base URLs.
Passtenantoncall_endpoint/download_display_snapshotfor non-US WAP markets. Omit for US.
List operations from the bundled OpenAPI spec for anad_type, with optional filters.
Return one operation plus thecomponents.schemasreachable from it (its$refclosure), so request bodies and responses can be built without the full spec.
Execute any Walmart Connect Ads API endpoint. Identify it byoperation_id, or by rawmethod+path. Raw method+path also reaches alpha/beta/unpublished endpoints that are not in the bundled specs. The server handles RSA-SHA256 signing.
- Provide either
operation_id, or bothmethodandpath.
~/.cache/mcp-walmart-ads/specs/) that takes precedence over the bundled copy.
Download a display snapshot file (report or entity). Display snapshot URLs require authenticated requests, so this tool handles the signing automatically. Use the full download URL from thedetailsfield after polling a display snapshot todonestatus.
Endpoint schemas come from the bundled OpenAPI specs vialist_endpoints/describe_endpoint(seeTools), not from static resources.
{ "mcpServers": { "walmart-ads": { "command": "uvx", "args": ["mcp-walmart-ads"] } } }
{ "mcpServers": { "walmart-ads": { "command": "uvx", "args": ["mcp-walmart-ads"] } } }
[mcp_servers.walmart-ads] command = "uvx" args = ["mcp-walmart-ads"]
{ "$schema": "https://opencode.ai/config.json", "mcp": { "walmart-ads": { "type": "local", "enabled": true, "command": ["uvx", "mcp-walmart-ads"] } } }
{ "inputs": [], "servers": { "walmart-ads": { "type": "stdio", "command": "uvx", "args": ["mcp-walmart-ads"] } } }
uv sync --group dev # install deps uv run pytest # run tests uv run ruff check . # lint uv run ruff format . # format uv run pyright # type check
Open issues or PRs. Follow existing style and add tests where appropriate.
Hosted MCP server that gives AI agents read and write access to your full marketing & ecommerce stack — Google Analytics, Search Console, Google & Meta Ads, Shopify, WooCommerce, Shopware, Slack and LinkedIn. 100+ tools across 10 connectors. BYOK, OAuth 2.1 with dynamic client registration.
MCP (Model Context Protocol) server for the Meta (Facebook) Ads API.
A Model Context Protocol (MCP) server for TikTok Ads API integration. This server enables AI assistants like Claude to interact with TikTok advertising campaigns, providing comprehensive campaign management, analytics, and optimization capabilities. Part of the AdsMCP project - MCP servers for advertising platforms.
Analyse SEO, PPC, E-Commerce from 30+ marketing sources
An MCP server that serves ads to developers in clients like Cursor and Claude.
Hosted Amazon Seller Central and Amazon Ads MCP server for Claude, ChatGPT, Cursor, Claude Code, OpenClaw, and HTTP-capable MCP clients.
Integrate with the Amazon Product Advertising API to search for products and access product information.
Brandlio MCP is a remote Model Context Protocol server that connects your advertising, analytics, e‑commerce, and revenue accounts to Claude, ChatGPT, Gemini, Cursor, and any other MCP‑compatible client
A remote Google Ads MCP server built by a marketer for marketers
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





