counter
Reads a Square seller account via the Square REST v2 API: locations, catalog items and variations, orders and order details, inventory counts (with low-stock filtering), and day/week sales summaries (gross and net sales, tax, tips, average ticket, top items, per-day breakdown). Optionally, with writes enabled and per-call confirmation, adds catalog items with a priced variation and adjusts inventory for received stock or waste.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
counter
Give agents a seat at the counter.
counter is an MCP server that lets an AI agent read a small business's Square account: locations, catalog, orders, inventory and sales totals. It can also add catalog items and adjust stock, but only when you switch writes on and the agent confirms each change.
Quick start
No Square account or API key needed. --mock serves a small two-location coffee shop with a full order history.
git clone https://github.com/numbercutter/counter && cd counter
bun examples/drive.tsThat starts the server over stdio, sends initialize, tools/list and a dozen tools/call requests, and prints what comes back. To send one request yourself:
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"sales_summary","arguments":{"period":"week","date":"2026-11-18"}}}' \
| bun src/server.ts --mockRequires Bun 1.1 or later. No dependencies.
Related MCP server: shopify
Usage
Claude Code
claude mcp add counter -- bun /absolute/path/to/counter/src/server.ts --mockWith a real account:
claude mcp add counter \
-e SQUARE_ACCESS_TOKEN=your-token \
-e SQUARE_ENV=sandbox \
-- bun /absolute/path/to/counter/src/server.tsClaude Desktop
Add to claude_desktop_config.json (Settings > Developer > Edit Config):
{
"mcpServers": {
"counter": {
"command": "bun",
"args": ["/absolute/path/to/counter/src/server.ts"],
"env": {
"SQUARE_ACCESS_TOKEN": "your-token",
"SQUARE_ENV": "sandbox"
}
}
}
}Use "args": [".../server.ts", "--mock"] and drop env to try it on fixture data. If Claude Desktop can't find bun, use its full path (which bun).
Tools
tool | what it does |
| Locations with id, timezone, currency and address. |
| Items and variations matching text, with prices and variation ids. |
| Orders created between two dates, oldest first. Filter by location or state. |
| One order with line items, discounts, tax and tenders. |
| In-stock counts with item names. |
| Day or Monday-to-Sunday week: orders, gross and net sales, tax, tips, average ticket, top items, per-day rows. |
| Add an item with one priced variation. Write tool. |
| Add received stock or record waste. Write tool. |
Dates are YYYY-MM-DD or full timestamps. Pass utc_offset (for example -06:00) so a "day" means the shop's day, not UTC's.
Configuration
variable | default | |
| Personal access token or OAuth token. Required unless | |
|
|
|
|
|
|
| unset |
|
Writes
Write tools are listed but refuse to run unless both are true:
the server was started with
COUNTER_ALLOW_WRITES=1, andthe call includes
"confirm": true.
The tool descriptions tell the agent to ask the owner before setting confirm. That is a prompt, not a lock: if you don't want an agent changing the account, leave writes off. For the token itself, a sandbox token or an OAuth token limited to ITEMS_READ ORDERS_READ INVENTORY_READ MERCHANT_PROFILE_READ is the safest setup.
How it works
src/server.ts speaks MCP (JSON-RPC 2.0, one message per line) on stdin and stdout and logs to stderr. src/tools.ts defines the tools and turns Square objects into compact JSON with amounts in major units. src/square.ts calls the Square REST v2 API with fetch and follows pagination cursors. src/mock.ts implements the same interface from a seeded generator, so any date returns the same orders every time.
sales_summary fetches every completed and canceled order in the period and adds them up. Net sales are line-item gross minus discounts; tax and tips are reported separately; total_collected is what tenders took in.
Limits
Only stdio transport. No HTTP or SSE.
sales_summaryreads raw orders, not Square's reports, so it can differ slightly from the Square Dashboard (refunds and returns are not subtracted). It stops at 10,000 orders and saystruncated: true.Orders are searched across at most 10 locations at a time, which is Square's limit.
Day boundaries use a fixed UTC offset, so a week that crosses a daylight saving change is off by an hour at one end.
adjust_inventoryonly does received stock (NONEtoIN_STOCK) and waste (IN_STOCKtoWASTE). Physical counts and transfers are not covered.Mock data is invented. Mock writes live in memory and reset when the server restarts.
Not affiliated with Square.
A numbercutter instrument · MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Amazon Ads, Seller Central, Vendor Central and AMC data for AI agents. Read-only by default.
Connect AI to store orders, products and inventory with scoped access and human approvals.
Read and update live small-business inventory, suppliers, reorder suggestions and purchase orders.
One place to build, share, and govern the skills and tools your AI agents use at work.
Related MCP Servers
- AlicenseAqualityDmaintenanceAllows AI assistants to interact with Square's connect API, providing access to Square's complete API ecosystem for managing payments, orders, customers, inventory, and more.3Apache 2.0
- AlicenseAqualityCmaintenanceEnables AI agents to read and write Shopify store data including products, orders, customers, inventory, and more via the Admin GraphQL API.2858 npmMIT
- FlicenseAqualityDmaintenanceEnables LLM agents to interact with Squarespace Commerce APIs (products, orders, inventory, transactions) using natural language.11-

Adyvance MCPofficial
AlicenseNot gradedqualityCmaintenanceEnables AI apps to search shop orders, products, customers, and stock and, with explicit approval, update orders, products, and inventory through the Model Context Protocol.MIT