posbuzz-mcp
OfficialThis local MCP server lets you operate PosBuzz’s Social Analytics API from MCP clients, including EC sales sync and social-analysis workflows.
Import EC sales data from CSV or JSON records, with column mapping and idempotent upserts.
Delete EC sales by channel or import date, and read sync status/counts without exposing individual sales rows.
List, create, and read workspaces used to save/reuse analysis conditions.
Start and list analysis runs across TikTok, YouTube, Instagram, and X, then poll run status.
Fetch completed-run results: summaries, per-post social results, per-account aggregates, social-vs-EC correlation chart data, and owned/competitor EC performance.
Check current-month token quota and usage.
Use filtering, sorting, and cursor pagination on result/run endpoints; some write operations may consume quota or delete data.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@posbuzz-mcp Show me top positive mentions for our foundation line this month"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
posbuzz-mcp
A local MCP server that exposes the PosBuzz / cosmetic-analysis SaaS API (Social Analytics API v1) as MCP tools, so you can call it from MCP clients like Claude Code, Codex, and Claude Desktop.
It works by fetching the SaaS OpenAPI spec at startup, turning every endpoint into an MCP tool, and forwarding tool calls to the SaaS API using your bearer token.
This is a local, stdio MCP server — not a remote/hosted MCP. It runs as a local process on your machine, talks to the client over standard input/output, opens no HTTP port, and exposes no public endpoint. Your API key stays on your machine.
Requirements
uvinstalled (it ships theuvxlauncher and manages Python for you — you do not need to install Python yourself)A SaaS API key
Related MCP server: Postman MCP Generator
Get a SaaS API key
In the web app, go to Settings → Developer API and issue a key. The token
looks like sa_.... Keep it secret — treat it like a password.
Quick start (no clone — recommended)
You don't need to clone this repo or install anything by hand. uvx fetches the
server straight from GitHub, builds it in an isolated environment, and runs it —
all in one command. The first run downloads and caches it; later runs start
instantly. The only configuration you need is your API key.
Add this to your MCP client's config:
{
"mcpServers": {
"posbuzz": {
"command": "uvx",
"args": ["--from", "git+https://github.com/pos-buzz/posbuzz-mcp@main", "posbuzz-mcp"],
"env": {
"SAAS_API_KEY": "sa_your_api_key"
}
}
}
}By default the server talks to the production API at https://pos-buzz.com, so
SAAS_API_KEY is the only thing you have to set.
Claude Code
One command — no config file editing:
claude mcp add posbuzz \
--env SAAS_API_KEY=sa_your_api_key \
-- uvx --from git+https://github.com/pos-buzz/posbuzz-mcp@main posbuzz-mcpCodex
Add to ~/.codex/config.toml:
[mcp_servers.posbuzz]
command = "uvx"
args = ["--from", "git+https://github.com/pos-buzz/posbuzz-mcp@main", "posbuzz-mcp"]
env = { SAAS_API_KEY = "sa_your_api_key" }After editing the config, restart your MCP client.
Getting updates
uvx caches the version it pulled from @main, so it won't pick up new commits
automatically. To upgrade to the latest, run it once with --refresh:
uvx --refresh --from git+https://github.com/pos-buzz/posbuzz-mcp@main posbuzz-mcp(then restart your MCP client). You can also pin a release tag instead of
@main, e.g. git+https://github.com/pos-buzz/posbuzz-mcp@v0.1.0.
Configuration
Set configuration via environment variables (via your MCP client's env).
Variable | Required | Default | Purpose |
| yes | — | SaaS API bearer token ( |
| no |
| SaaS API base URL (spec is fetched from |
| no |
| MCP server name shown to the client |
| no |
| Logging level (e.g. |
The defaults point at production, so a normal user only sets SAAS_API_KEY.
Copy .env.example to .env for local reference (the .env file is gitignored
and is not read automatically — pass values via your MCP client's env).
Local development
If you're hacking on the server itself, clone the repo and run from source.
Using uv
git clone https://github.com/pos-buzz/posbuzz-mcp.git
cd posbuzz-mcp
uv run posbuzz-mcp # creates the env and runs the server (stdio)
# or run from anywhere: uvx --from . posbuzz-mcpUsing pip
git clone https://github.com/pos-buzz/posbuzz-mcp.git
cd posbuzz-mcp
pip install .
posbuzz-mcp # console script
# or: python -m posbuzz_mcpTo point a local checkout at a locally running SaaS app instead of production,
override the URLs in your env:
API_BASE_URL=http://localhost:3000 \
uv run posbuzz-mcpA matching MCP client config (Claude Code, Codex, or generic JSON) uses
"command": "uv" with
"args": ["run", "--directory", "/abs/path/to/posbuzz-mcp", "posbuzz-mcp"], or
for a pip install just "command": "posbuzz-mcp".
Note: the repo must be public for the
uvx --from git+https://...quick start to work without auth. If it ever becomes private, authenticate the Git fetch with a token (git+https://<token>@github.com/...) or SSH (git+ssh://git@github.com/pos-buzz/posbuzz-mcp.git).
How it works
The OpenAPI spec is fetched at startup from
<API_BASE_URL>/api-docs/v1/openapi.yaml, using the sameSAAS_API_KEYbearer token (the spec is not public).Spec changes take effect only after you restart the server (restart the MCP client, or restart the process). There is no live watching or regeneration.
The available tools are derived entirely from the SaaS OpenAPI spec. As the SaaS API evolves, the tools change accordingly.
Available tools
The available tools are generated from the SaaS OpenAPI spec at startup, so they always match the current API. For the full list of endpoints and their parameters, see the API Doc.
Destructive / write operations
Some tools map to write operations (e.g. POST endpoints), and some of these may
consume quota. Refer to the API Doc to see which endpoints write or have side
effects, and review arguments before approving these calls in your client.
Security
Never commit or share your
.envfile or your API key..envis listed in.gitignore.The token is sent only as
Authorization: Bearer <token>to the SaaS API. It is not logged and is not included in error messages.
Troubleshooting
Failed to fetch OpenAPI spec ...— the SaaS app isn't reachable orAPI_BASE_URLis wrong, or the key is invalid (the spec requires the key). Verify withcurl -H "Authorization: Bearer $SAAS_API_KEY" http://localhost:3000/api-docs/v1/openapi.yaml. If you installed viauvxbefore this change, run once with--refresh.SAAS_API_KEY is required— no token in the environment passed to the server. Add it to your MCP client'senv.401 Unauthorized on tool calls — the key is invalid or revoked. Issue a new one in Settings → Developer API.
Connection refused on tool calls —
API_BASE_URLis wrong or the SaaS app isn't running.For more detail, set
LOG_LEVEL=DEBUG.
Available Tools
14 toolscreate_workspaceA
Creates a new workspace and returns its id. Pass the returned id as workspace_id to start_run. Analysis conditions themselves are not set here — specify them in the start_run body.
Inputs: name. Returns: data
delete_ec_salesA
Deletes synced EC sales data for a channel. Provide source_channel (required) and optionally
imported_on:
with
imported_on→ deletes only that import batch (the rows synced on that date).without
imported_on→ deletes the entire channel.
Deletion is idempotent: deleted_count is 0 when nothing matched. Use read_ec_sync_status to
discover the channels and import dates available to delete.
Inputs: source_channel (required), imported_on. Returns: data
import_ec_salesA
Imports EC sales data into the tenant. Choose one of two payload types via payload_type:
payload_type=csv (default)
Sync a source CSV (e.g. a sales export downloaded from Amazon, Rakuten, or your own EC).
Download the sales CSV from the EC mall to a local file.
Base64-encode the file's bytes and send it as
csv_payload.Map each CSV column header to the five required normalized fields via
mapping:product_id,product_name,sold_on,sales_amount,sales_quantity.
payload_type=json
Send the rows directly as records — an array of objects keyed by the canonical field names.
No mapping or csv_payload is needed.
For both modes set source_channel (e.g. amazon, rakuten, owned) — it is normalized (lowercased, spaces → dashes).
Notes
Rows are upserted on the business key (
source_channel×product_id×sold_on). Re-sending the same rows updates them in place — the sync is idempotent.sold_onmust be a complete date (year, month, and day). Accepted formats:YYYY-MM-DD,YYYY/MM/DD,YYYY.MM.DD.sales_amountandsales_quantitymust be zero or greater. Currency symbols/commas in amounts are stripped.On any row or mapping error nothing is written and a 422 is returned with the per-row messages in
error.details.errors.After syncing, confirm with
read_ec_sync_status. Individual sales rows are never readable back through the API.
Inputs: mapping, records, filename, csv_payload, +2 more. Returns: data
list_runsA
Lists the tenant's past runs, newest first. Use it to find a run whose token you didn't save, or to revisit past analyses.
keywords / sources are contains-all filters (a run must include every value given). Page through with meta.next_cursor.
Inputs: limit, cursor, sources, keywords. Returns: data, meta
list_workspacesA
Returns the tenant's workspaces. A workspace is a container for saving and reusing analysis conditions, passed as workspace_id to start_run. To just run a new analysis, create one with create_workspace.
Inputs: no named parameters. Returns: data
read_ec_resultsA
Fetches daily EC performance of a completed run. Returns 409 if the run is incomplete.
dataset=owned is your own performance (when start_run had product_id); dataset=competitor is competitor performance (when competitor_asins was set; one row per ASIN).
Check which datasets are available via the datasets field of read_result_summary. A dataset other than owned/competitor returns 422.
Inputs: token (required), dataset (required), limit, cursor. Returns: data, meta
read_ec_sync_statusA
Confirms whether EC sales data has been synced. Returns aggregate counts and timestamps per channel plus the most recent sync batches.
For security, this endpoint does not expose individual sales rows or amounts — it is only a
confirmation that a sync happened. Use it after import_ec_sales to verify the rows landed.
Inputs: no named parameters. Returns: data
read_result_summaryA
Returns the overall summary of a completed run: collected counts, a per-(keyword, source) overview, the social-metric × EC-sales correlation chart, and which EC datasets are available — all at a glance.
Best first step when fetching results. Returns 409 if the run is incomplete.
Only datasets where data.datasets.owned_ec / competitor_ec is true can be fetched via read_ec_results.
Inputs: token (required). Returns: data
read_run_statusA
Returns the run's current status. After start_run, poll this until data.status becomes succeeded.
On succeeded, the result endpoints (read_result_summary / read_social_results / read_social_accounts / read_ec_results) become available.
On failed, data.error holds the failure reason. Always confirm completion here before calling the result endpoints.
Inputs: token (required). Returns: data
read_social_accountsA
Fetches per-account aggregates of a completed run (follower count, total views, view/follower rate). Returns 409 if the run is incomplete. Use it to see which accounts / influencers are driving results. Filter by source / min_followers, order with sort / direction, and page with cursor.
Inputs: token (required), sort, limit, cursor, +3 more. Returns: data, meta
read_social_resultsA
Fetches the individual social posts of a completed run, with metrics. Returns 409 if the run is incomplete.
Filter by source / keyword / date, and order with sort / direction.
Pass cursor until meta.next_cursor is null to fetch everything. Use this for post-level detail (use read_result_summary for the big picture).
Inputs: token (required), date, sort, limit, +4 more. Returns: data, meta
read_token_usageA
Returns the tenant's current-month token quota and consumption. Use it to check remaining budget before starting analysis. A pure read — it does not affect runs or workspaces.
Inputs: no named parameters. Returns: data
read_workspaceA
Returns a single workspace by ID. Unknown or other-tenant IDs return 404.
Inputs: id (required). Returns: data
start_runA
Starts an analysis run in the given workspace. This is the entry point of the workflow.
Save data.token from the 202 response, wait for succeeded via read_run_status, then call the result endpoints.
social_queries: one row per (keyword, source) pair. Repeat rows to search multiple keywords and/or platforms.Set
product_id/competitor_asinsto enable correlation between social metrics and EC sales (read_ec_results owned / competitor). Omit for social-only analysis.If a run is already running for the tenant, returns 429 (one concurrent run max). Wait for the prior run to finish.
Invalid conditions (e.g. a bad date) return 422.
Inputs: workspace_id (required), date_to, date_from, product_id, +3 more. Returns: data
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Each tool targets a distinct resource and action: workspaces, runs, results, EC sync, and token usage are clearly separated. Overlap between result readers is mitigated by explicit 'big picture' vs 'post-level' vs 'per-account' vs 'EC performance' descriptions.
All tool names follow a consistent verb_noun pattern (read_, list_, create_, start_, import_, delete_). No mixed conventions or vague verbs like 'process' or 'run' standalone.
Fourteen tools is well within the ideal range and each maps to a clear step in the analysis workflow: manage workspaces, start runs, check status, fetch results, and sync/delete EC data. No redundant tools.
The core lifecycle is covered: workspace create/read/list, run start/status/list, and full result retrieval (summary, social posts, accounts, EC metrics). Minor gaps like workspace update/delete and run cancellation are absent, but they are not essential to the primary analysis workflow.
Related MCP Connectors
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
Marketo MCP server for AI. 130 tools to operate Marketo from Claude, Cursor, or ChatGPT.
Related MCP Servers
AlicenseNot gradedqualityCmaintenanceAn MCP server that enables dynamic tool registration and execution based on API definitions, providing seamless integration with services like Claude.ai and Cursor.ai.23MIT- AlicenseBqualityDmaintenanceAn MCP-compatible server that provides tools for integrating selected Postman API requests, allowing LLMs like Claude to interact with APIs through natural language.3MIT
- FlicenseNot gradedqualityDmaintenanceA standalone MCP server that exposes API endpoints as tools for AI assistants by proxying requests to a target API defined in an OpenAPI specification. It supports various authentication methods and utilizes Server-Sent Events (SSE) to facilitate integration with clients like Claude and ChatGPT.-
- AlicenseAqualityBmaintenanceLocal MCP server that wraps the headless Claude Code CLI as MCP tools, providing stateless access to Claude's coding capabilities through prompt-based interactions. It enables users to execute Claude Code commands with various prompt formats and structured outputs directly from MCP clients.3MIT