Sherweb MCP Server
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., "@Sherweb MCP Servershow me what we owe Sherweb this billing period"
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.
Sherweb MCP Server
An MCP server for the Sherweb Partner APIs, used by MSPs that resell cloud subscriptions (Microsoft 365 and others) through Sherweb. It lets an AI agent read what the MSP owes Sherweb (Distributor API) and the MSP's customers, their subscriptions, catalogs and receivable charges (Service Provider API) and, on explicit request, change a subscription's quantity.
Transport: MCP Streamable HTTP at
POST /mcp, health probe atGET /healthStateless and multi-tenant: credentials arrive on every request as HTTP headers and are never stored; access tokens live only for the duration of one request
Python 3.12, uv, FastMCP, httpx
License: Apache-2.0, Copyright 2026 MSPbots.ai
Authentication headers
Header | Required | Type | Default | Allowed values | Description | Example |
| Yes | string | none | - | Sherweb API client id |
|
| Yes | string | none | - | Sherweb API client secret |
|
| Yes | string | none | - | Sherweb API subscription key |
|
Where to get them:
In the Sherweb partner portal open Security -> APIs. Create API credentials to get the client id and secret, and copy the subscription key shown for the API subscription.
Give the client access to the Distributor API (billing tools) and the Service Provider API (customers, subscriptions, catalog). A client that only has one of them can still use that API's tools;
sherweb_statusshows which ones the credentials reach.
How credentials are sent to Sherweb: the server gets an access token from
POST https://api.sherweb.com/auth/oidc/connect/token (client credentials grant, scope
distributor or service-provider, requested only when a tool needs that API), then calls
https://api.sherweb.com/distributor/v1/... or https://api.sherweb.com/service-provider/v1/...
with Authorization: Bearer <token> and Ocp-Apim-Subscription-Key: <subscription key>.
Tokens are never reused across requests. Values that look like unresolved templates (${...})
are treated as missing.
A request to /mcp without all three headers gets HTTP 401 naming the missing ones.
Related MCP server: WHMCS MCP Server
Tools
All tools return a JSON string. Customer and subscription ids are UUIDs. Billing tools take any
date inside the wanted billing period (yyyy-MM-dd, UTC) and default to the current period.
Tool | Purpose | Parameters (required in bold) |
| Describe the tools of one area (changes nothing) | domain ( |
| Check which Sherweb APIs the credentials can reach | - |
| What you owe Sherweb for a billing period, with a per-currency summary | date |
| One payable charge in full | chargeId, date |
| Your customers, optionally filtered by name | search |
| One customer | customerId |
| What you bill a customer for a billing period, with a summary | customerId, date |
| A customer's subscriptions | customerId |
| One subscription in full (fees, status, SKU composition) | customerId, subscriptionId |
| Change a subscription's seat count (write, changes billing) | customerId, subscriptionId, quantity |
| Status of a submitted quantity change | trackingId |
| Products a customer can be sold, optionally filtered | customerId, search |
Errors come back as a JSON envelope instead of an exception:
{"error": {"code": "unauthorized", "message": "Sherweb returned HTTP 401 for customers: Access Denied - Access denied due to invalid subscription key.", "retryable": false}}code is one of not_configured, unauthorized, not_found, invalid_argument,
rate_limited, upstream_error; Sherweb's ProblemDetails title and detail are included.
Sherweb allows 3 concurrent requests, 100 requests per minute and 10,000 per day per API.
Reads are retried with backoff on 429, 5xx and network errors; the quantity change is retried
only on 429, so it never runs twice.
Run locally
uv sync
uv run python -m sherweb_mcp # listens on 0.0.0.0:8080or with Docker:
docker build --platform linux/amd64 -t sherweb-mcp:dev .
docker run --rm -p 8080:8080 sherweb-mcp:devConfiguration (environment variables, all optional): MCP_HTTP_HOST (default 0.0.0.0),
MCP_HTTP_PORT (default 8080), LOG_LEVEL (default INFO). Credentials are never read
from the environment.
Testing example
# list tools
curl -s http://localhost:8080/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "X-Sherweb-Client-ID: your-client-id" \
-H "X-Sherweb-Client-Secret: your-client-secret" \
-H "X-Sherweb-Subscription-Key: your-subscription-key" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
# customers whose name contains "example"
curl -s http://localhost:8080/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "X-Sherweb-Client-ID: your-client-id" \
-H "X-Sherweb-Client-Secret: your-client-secret" \
-H "X-Sherweb-Subscription-Key: your-subscription-key" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"sherweb_customers_list","arguments":{"search":"example"}}}'Unit tests (no network access needed):
uv run pytestDelivery notes
Tool count (12). Kept as is because the tool names are an existing contract; every tool is listed from the first
tools/list.No shared token cache. Older versions cached access tokens in the process under the client id and subscription key, without the secret, so a caller with a wrong secret could reuse a token another caller had obtained. Tokens are now requested per request and per API.
Quantity changes.
sherweb_subscriptions_change_quantityfirst confirms the subscription exists for that customer and reports the previous quantity; asking for the current quantity changes nothing. Sherweb processes the change asynchronously: pollsherweb_subscriptions_amendment_statuswith the returnedtrackingId.Subscription details.
sherweb_subscriptions_getmerges the subscription list (fees) with the details endpoint (status, SKU composition).Charge summaries. Payable and receivable charge tools add charge counts and totals per currency so large periods can be read without scanning every charge.
No interactive prompts. The confirmation prompt older versions showed before a quantity change cannot be relayed by a stateless gateway; the tool description and its destructive annotation tell the agent to act only on explicit request.
License
This server cannot be deployed
Maintenance
Related MCP Connectors
Sherweb Platform MCP server to manage subscriptions and orders. Use OpenID Connect to authenticate.
Chargezen Concierge gives your business autonomous AI digital employees. They answer customers by web chat, phone, SMS, WhatsApp, email, Slack and Telegram, and do internal work with approvals and an audit trail. This endpoint serves Concierge's tools: Ask Concierge, agents, knowledge, orders and fulfillment, reports, media and rewards, under the teammate's own permissions and OAuth scopes. Part of Chargezen, the unified revenue operations platform: every product runs on the same business and customer data.
Track, analyze, and act on your streaming and SaaS subscriptions from any AI agent.
- FullmaktOAuthai.fullmakt
Credential broker for AI agents: scoped, revocable API access with policy enforcement and audit.
Related MCP Servers
- AlicenseAqualityCmaintenanceStateless HTTP MCP service that exposes the Pax8 Partner API as tools for AI assistants to query companies, subscriptions, invoices, orders, products, and usage data.9Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to query and manage a web hosting billing platform through its External API — clients, tickets, invoices, domains, orders, products, and system data. It defaults to read-only with per-domain opt-in for writes, two-step confirmation for billing and destructive actions, and automatic redaction of secrets, card data, and PII.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to read and manage an MSP's billing through the partner API, covering customers, invoices, standalone payment requests, transactions, payouts, and webhook subscriptions. Credentials are supplied per request via headers, so it stays stateless and multi-tenant while supporting both sandbox and production environments.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to read and manage Microsoft 365 multi-tenant environments through the CIPP API, covering tenants, users, groups, mailboxes, conditional access, standards, licenses, and GDAP data. On explicit request, it can perform write actions such as creating or editing users, resetting passwords, offboarding leavers, configuring auto-replies and forwarding, and running standards.Apache 2.0