
also-cloud-marketplace-mcp
io.github.pitwch/also-cloud-marketplace-mcp
ALSO Cloud Marketplace API: companies, subscriptions, Azure plans, invoices (MCP stdio).
Documentation
ALSO Cloud Marketplace MCP
MCP Server for ALSO Cloud Marketplace
Companies · Subscriptions · Users · Invoices · Azure RI / Savings Plans
Overview
This MCP server connects AI assistants (Cursor, Claude, Gemini CLI, Codex, …) to the ALSO Cloud Marketplace Simple API. Natural-language requests are translated into API calls — locally over stdio, using the same auth and marketplace rules as the go-also-cloud-wrapper.
| Protocol | Model Context Protocol (stdio) |
| API | MarketplaceSimpleAPI 1.0.0 |
| Stack | TypeScript · Node.js 20+ |
| Tools | ~60 endpoints + workflow tools |
Highlights
- Workflow tools for common reseller questions (
find_companies,list_company_subscriptions, …) - Compact responses by default — raw data only with
fullDetail=true - Azure RI / Savings Plans including catalog enums and order dry-run
- Readable ALSO errors with support details (ALSO token, or server time, request refs and an MCP request ID) and a hint what to do next
- Escape hatches:
api_read/api_requestfor rarely used endpoints
Table of contents
Quick start
git clone https://github.com/pitwch/also-cloud-marketplace-mcp.git
cd also-cloud-marketplace-mcp
npm install
npm run build
Then set credentials (see Configuration) and register the server in your MCP client.
Recommended (built):
command: node
args: [<REPO>/dist/index.js]
Alternative without build (tsx):
command: npx
args: [tsx, <REPO>/src/index.ts]
Prerequisite for tsx: run npm install in the repo first.
Configuration
| Variable | Example | Required |
|---|---|---|
ALSO_CLOUD_MARKETPLACE | Switzerland or https://marketplace.also.ch | yes |
ALSO_CLOUDUSER | you@example.com | yes |
ALSO_CLOUDPW | •••••••• | yes |
ALSO_CLOUD_TIMEOUT_MS | 30000 | no |
ALSO_CLOUD_API_PREFIX | /SimpleAPI/.../rest | no |
ALSO_CLOUD_PARENT_ACCOUNT_ID | 123456 | no |
ALSO_CLOUD_ALLOW_REMOTE_PRICING | false | no |
ALSO_CLOUD_MARKETPLACE accepts a full URL or a country key: Switzerland, Germany, Austria, Debug, …
Without ALSO_CLOUD_PARENT_ACCOUNT_ID, the own account is detected automatically (get_my_account).
Set ALSO_CLOUD_ALLOW_REMOTE_PRICING only if ALSO enables RI/Savings Plan orders via the Simple API — otherwise validate_subscription_fields / create_subscription redirect to order_azure_reservation.
Note: 2FA
ALSO Cloud accounts have 2FA enabled by default. The Simple API and this MCP only support username + password. For API/MCP use, disable 2FA for the account via the ALSO support portal.
Client setup
Everywhere: start the server locally (stdio) and pass credentials as env.
Replace <REPO> with your clone path, e.g. C:/DEV/also-cloud-marketplace-mcp.
Cursor
- Settings → MCP → Add new MCP server (or edit
mcp.json) - Add:
{
"mcpServers": {
"also-cloud": {
"command": "node",
"args": ["C:/DEV/also-cloud-marketplace-mcp/dist/index.js"],
"env": {
"ALSO_CLOUD_MARKETPLACE": "Switzerland",
"ALSO_CLOUDUSER": "you@example.com",
"ALSO_CLOUDPW": "your-password"
}
}
}
}
- Enable the server / reload Cursor
- Use
also-cloudtools in chat, e.g. “List companies under parent 12345”
Claude Desktop
- Open config: Settings → Developer → Edit Config
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
- Insert the same
mcpServersblock as for Cursor - Fully restart Claude Desktop
- Check the tools icon in chat —
also-cloudshould appear
Claude Code (CLI)
claude mcp add also-cloud \
--env ALSO_CLOUD_MARKETPLACE=Switzerland \
--env ALSO_CLOUDUSER=you@example.com \
--env ALSO_CLOUDPW=secret \
-- node /path/to/also-cloud-marketplace-mcp/dist/index.js
claude mcp list
Gemini CLI
Config in ~/.gemini/settings.json (or .gemini/settings.json):
{
"mcpServers": {
"also-cloud": {
"command": "node",
"args": ["/path/to/also-cloud-marketplace-mcp/dist/index.js"],
"env": {
"ALSO_CLOUD_MARKETPLACE": "Switzerland",
"ALSO_CLOUDUSER": "you@example.com",
"ALSO_CLOUDPW": "your-password"
}
}
}
}
Or via CLI:
gemini mcp add also-cloud \
--env ALSO_CLOUD_MARKETPLACE=Switzerland \
--env ALSO_CLOUDUSER=you@example.com \
--env ALSO_CLOUDPW=secret \
-- node /path/to/also-cloud-marketplace-mcp/dist/index.js
Docs: MCP servers with Gemini CLI · Project notes: GEMINI.md
OpenAI Codex / ChatGPT Desktop
Codex uses TOML (~/.codex/config.toml):
[mcp_servers.also-cloud]
command = "node"
args = ["/path/to/also-cloud-marketplace-mcp/dist/index.js"]
[mcp_servers.also-cloud.env]
ALSO_CLOUD_MARKETPLACE = "Switzerland"
ALSO_CLOUDUSER = "you@example.com"
ALSO_CLOUDPW = "your-password"
Or:
codex mcp add also-cloud \
--env ALSO_CLOUD_MARKETPLACE=Switzerland \
--env ALSO_CLOUDUSER=you@example.com \
--env ALSO_CLOUDPW=secret \
-- node /path/to/also-cloud-marketplace-mcp/dist/index.js
codex mcp list
In the TUI, /mcp shows connected servers.
Docs: OpenAI MCP / Codex
VS Code (GitHub Copilot)
Same pattern as Cursor: register an MCP server with command / args / env, point to dist/index.js, and set credentials.
Browser (ChatGPT, Gemini, Perplexity) — MCP SuperAssistant
For web clients without native local MCP, use MCP SuperAssistant (browser extension + local proxy).
- Install the extension: Chrome Web Store
- Create
config.jsonwith thealso-cloudblock (same as Cursor) - Start the proxy:
npx -y @srbhptl39/mcp-superassistant-proxy@latest --config ./config.json --outputTransport sse
Default URL: http://localhost:3006/sse
- In the browser: MCP sidebar → Connect → insert instructions → use tools
Usage
After connecting, ask in natural language:
| Question | Tool |
|---|---|
| “Subscriptions for Demo AG?” | list_company_subscriptions |
| “All Azure/VM subscriptions / RI optimization” | list_azure_subscriptions |
| “Find company Demo” | find_companies |
| “Exchange reservation for Demo AG” | get_reservation_options |
| “What is my parent ID?” | get_my_account |
| “Companies under parent 523525” | get_companies |
| “Latest invoices for March 2026” | get_latest_invoices_for_period |
| “Create a user under company X” | create_user |
Tip: For company/subscription questions use the workflow tools — not reports or marketplaces. Subscription tools return compact answers by default; raw data only with fullDetail=true.
Discover all API endpoints: list_api_endpoints.
Tools
~60 tools. Full list including risk flags: list_api_endpoints.
Recommended workflows
| Tool | Purpose |
|---|---|
find_companies | Find a company under a parent: name or fragment, word prefixes ("beisp hand"), initials ("BH"), customer ID, domain; without a direct hit also abbreviations ("BP" → Beispiel …) and typos as matchMode: fuzzy |
list_company_subscriptions | Active/compact subscriptions for a company incl. quantity, term (e.g. P1Y), end date, auto-renew, unit prices (purchase / sales / retail) and monthly totals |
list_azure_subscriptions | Azure Plan / RI / Savings Plan (portfolio) |
get_reservation_options | Exchange/change/renew options (read-only) |
get_my_account | Own account = default parentAccountId |
Session & meta
| Tool | Purpose |
|---|---|
list_marketplaces | Country keys → base URLs (no login) |
list_api_endpoints | Simple API catalog |
validate_session / clear_session | Check / discard session |
order_azure_reservation | RI / Savings Plans via portal API (dry-run by default; confirmOrder=true places the order) |
get_remote_enums | Cascading option values (SKU, region, segment, …) |
api_read | Read-only escape hatch for Get*/List* without a dedicated tool |
api_request | Escape hatch for write/destructive endpoints |
Read
| Area | Tools |
|---|---|
| Company / Reseller / Dept / User | get_*, get_*_by_vat_id, lists |
| Subscriptions | get_subscription(s), get_subscription_with_addons, get_possible_services_for_parent |
| Catalog | get_owned_marketplaces, list_marketplace_services, get_available_services_for_marketplace, get_service_information |
| Billing | get_reports, execute_report, get_latest_invoices*, get_preview_invoices, get_invoice_aggregation_report |
| Other | get_credit_limit, get_security_roles, get_special_deal |
Write
| Area | Tools |
|---|---|
| Accounts | create_* / update_* for Company, Reseller, Department, User |
| Subscriptions | get_fields_for_service, validate_subscription_fields, create_subscription, update_subscription |
| Actions | get_account_custom_actions, execute_account_custom_action, retry_last_failed_provisioning |
| Upgrade / Renew | get_possible_services_for_upgrade, get_subscription_fields_for_*, execute_subscription_upgrade, configure_subscription_renew, reset_default_renew_values |
| Credit / Deal | set_credit_limit, list_credit_check_orders_for_approval, approve_* / decline_credit_check_order, set_special_deal |
Via api_request only
Destructive / rare endpoints (TerminateAccount, DeleteMarketplace*, …) intentionally have no dedicated tool — so the AI does not call them by accident.
Development
npm run dev # stdio via tsx
npm run typecheck
npm run build
npm start # node dist/index.js
Important: Write only MCP JSON-RPC to stdout — log exclusively with console.error.
Release: bump version in package.json (the only place it is set), commit, then push a matching tag — GitHub Actions builds and publishes the release; its notes list the commit messages since the previous tag:
git tag v0.5.3 && git push origin v0.5.3
Links
| Resource | URL |
|---|---|
| Repository | https://github.com/pitwch/also-cloud-marketplace-mcp |
| Go wrapper | https://github.com/pitwch/go-also-cloud-wrapper |
| Swagger / API | https://app.swaggerhub.com/apis-docs/MarketplaceSimpleAPI/MarketplaceSimpleAPI/1.0.0 |
| MCP Spec | https://modelcontextprotocol.io |
| Provider | https://www.pitw.ch |
| Social preview | docs/assets/social-preview.png (1280×640 — GitHub → Settings → General → Social preview) |
License & provider
MIT License — see LICENSE.
Developed and provided by
Pedrett IT+Web AG
www.pitw.ch
Full automation and support — directly from the developer.
Murgtalstrasse 20 · 9542 Münchwilen TG · Switzerland · info@pitw.ch
@pitwch/also-cloud-marketplace-mcpnpm install @pitwch/also-cloud-marketplace-mcp