npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

square-mcp-server

v0.1.2

Published

MCP Server for Square API

Downloads

181

Readme

Square Model Context Protocol Server (Beta)

This project follows the Model Context Protocol standard, allowing AI assistants to interact with Square's connect API.

Quick Start

Get up and running with the Square MCP server using npx:

# Basic startup
npx square-mcp-server start

# With environment configuration
ACCESS_TOKEN=YOUR_SQUARE_ACCESS_TOKEN SANDBOX=true npx square-mcp-server start

# local runs
npx /path/to/project/square-mcp-server

Replace YOUR_SQUARE_ACCESS_TOKEN with your actual Square access token. You can obtain your access token by following the guide at Square Access Tokens. You can also set environment variables before running the command.

Configuration Options

| Environment Variable | Purpose | Example | |---------------------|---------|---------| | ACCESS_TOKEN | Your Square API access token | ACCESS_TOKEN=sq0atp-... | | SANDBOX | Use Square sandbox environment | SANDBOX=true | | PRODUCTION | Use Square production environment | PRODUCTION=true | | DISALLOW_WRITES | Restrict to read-only operations | DISALLOW_WRITES=true | | SQUARE_VERSION | Specify Square API version | SQUARE_VERSION=2025-04-16 |

Integration with AI Assistants

Goose Integration

To configure the Square MCP Server with Goose:

# Automatic installation
npx square-mcp-server install

# Get URL for manual installation
npx square-mcp-server get-goose-url

The install command automatically updates your Goose configuration.

Claude Desktop Integration

For Claude Desktop integration, see the Model Context Protocol Quickstart Guide. Add this configuration to your claude_desktop_config.json:

{
  "mcpServers": {
    "mcp_square_api": {
      "command": "npx",
      "args": [
        "square-mcp-server",
        "start"
      ],
      "env": {
        "ACCESS_TOKEN": "YOUR_SQUARE_ACCESS_TOKEN",
        "SANDBOX": "true"
      }
    }
  }
}

Tool Reference

The Square MCP Server provides a streamlined set of tools for interacting with Square APIs:

| Tool | Description | Primary Use | |------|-------------|------------| | get_service_info | Discover methods available for a service | Exploration and discovery | | get_type_info | Get detailed parameter requirements | Request preparation | | make_api_request | Execute API calls to Square | Performing operations |

Service Catalog

Square MCP Server provides access to Square's complete API ecosystem. Check out the Square API Documentation for detailed information about each service:

| Service | Description | |---------|-------------| | applepay | Apple Pay integration | | bankaccounts | Bank account management | | bookingcustomattributes | Custom attributes for bookings | | bookings | Appointment booking management | | cards | Payment card management | | cashdrawers | Cash drawer management | | catalog | Catalog management (items, categories, etc.) | | checkout | Checkout and payment processing | | customercustomattributes | Custom attributes for customers | | customergroups | Customer grouping | | customersegments | Customer segmentation | | customers | Customer management | | devices | Square device management | | disputes | Payment dispute handling | | events | Event tracking | | giftcardactivities | Gift card activity tracking | | giftcards | Gift card management | | inventory | Inventory tracking | | invoices | Invoice management | | labor | Workforce management | | locationcustomattributes | Custom attributes for locations | | locations | Location management | | loyalty | Loyalty program management | | merchantcustomattributes | Custom attributes for merchants | | merchants | Merchant account management | | oauth | Authentication | | ordercustomattributes | Custom attributes for orders | | orders | Order management | | payments | Payment processing | | payouts | Payout management | | refunds | Refund management | | sites | Website integration | | snippets | Square Online Code integration | | subscriptions | Subscription management | | team | Staff management | | terminal | Square Terminal management | | vendors | Supplier management | | webhooksubscriptions | Event notifications |

Usage Pattern

For optimal interaction with the Square API through MCP:

  1. Discover: Use get_service_info to explore available methods

    get_service_info(service: "catalog")
  2. Understand: Use get_type_info to learn parameter requirements

    get_type_info(service: "catalog", method: "list")
  3. Execute: Use make_api_request to perform the operation

    make_api_request(service: "catalog", method: "list", request: {})

Development and Debugging

Using MCP Inspector

The MCP Inspector provides a visual interface for testing:

# Build the project
npm run build

# Start the inspector with the Square MCP Server
npx @modelcontextprotocol/inspector node dist/index.js start

Development Workflow

  1. Clone the repository
  2. Install dependencies: npm install
  3. Start development mode: npm run watch
  4. Run the server: node dist/index.js start
  5. Test your changes using the MCP Inspector

Contributing

This repository is auto-generated from Square's OpenAPI Specification. While contributions are welcome, please note that changes will need to be incorporated into the generator that produces this code. Please open an issue to discuss proposed changes before submitting a pull request.