Squarespace MCP Server
A comprehensive MCP server for Squarespace that enables AI assistants to manage websites, handle e-commerce operations, create content, and view analytics through 67 tools and 15 React apps.
README
Squarespace MCP Server
A comprehensive Model Context Protocol (MCP) server for Squarespace, providing complete integration with the Squarespace platform for website management, e-commerce operations, content creation, and analytics.
Overview
This MCP server enables AI assistants to interact with Squarespace sites through a rich set of 67 tools covering all major platform features. Built with TypeScript and the official MCP SDK, it provides type-safe, reliable access to Squarespace's v1.0 API with OAuth2 authentication, automatic token refresh, pagination, error handling, and retry logic.
Features
🛍️ Complete API Coverage (67 Tools)
Commerce - Orders (8 tools)
- List, search, and filter orders by date range, status, email
- Get detailed order information with line items and fulfillment
- Create orders (for importing from external sources)
- Fulfill orders with optional shipping notifications and tracking
- Add internal notes to orders
- Get pending orders and recent orders
Commerce - Products (10 tools)
- List all products with pagination
- Get detailed product information with variants and images
- Create new products with variants
- Update products (name, description, pricing, SEO)
- Delete products
- Create, update, and delete product variants
- Search products by name or tag
- Filter products by tags
Commerce - Inventory (5 tools)
- Get inventory levels for variants
- Update inventory quantities
- Adjust inventory by relative amounts
- Check for low stock items (configurable threshold)
- List out-of-stock items
Commerce - Transactions (3 tools)
- Get all transactions for an order
- Process refunds
- Get transaction summaries (total paid, refunded, net)
Profiles (7 tools)
- List all profiles (customers, subscribers, donors)
- Get detailed profile information
- List customers with purchase history
- List mailing list subscribers
- List donors
- Search profiles by email
- Get top customers by lifetime value
Webhooks (7 tools)
- List all webhook subscriptions
- Get webhook details
- Create new webhooks for events (order.create, inventory.update, etc.)
- Update webhook configurations
- Delete webhooks
- Send test notifications
- Rotate webhook secrets for security
Pages & Website (8 tools)
- Get website information
- List and get collections
- List, get, create, update, and delete pages
- Manage page SEO settings
Forms (5 tools)
- List all forms
- Get form details with fields
- List form submissions with filtering
- Get specific submission details
- Export form submissions as CSV
Blog (9 tools)
- List all blog collections
- Get blog details
- List blog posts with pagination
- Get specific blog post
- Create new blog posts
- Update blog posts
- Delete blog posts
- Publish and unpublish posts
Analytics (5 tools)
- Get revenue metrics (total revenue, order count, AOV)
- Get top-selling products by revenue
- Get daily sales breakdowns
- Get monthly revenue summary
- Get yearly revenue summary
🎨 15 React MCP Apps (Dark Theme)
All apps are standalone Vite-based React applications with dark theme:
- Orders Dashboard - Order management and fulfillment
- Products Manager - Product catalog management
- Inventory Tracker - Real-time inventory monitoring
- Customer Profiles - Customer LTV and history
- Analytics Dashboard - Revenue and sales insights
- Blog Editor - Blog post management
- Forms Viewer - Form submissions and export
- Webhook Manager - Webhook configuration and testing
- Page Manager - Website page management
- Bulk Editor - Bulk product updates
- SEO Optimizer - SEO settings and optimization
- Reports - Generate and download reports
- Shipping Manager - Fulfillment tracking
- Discount Manager - Discount code management
- Settings - Server and API configuration
🔒 Enterprise-Grade Features
- OAuth2 Authentication - Full OAuth2 support with refresh tokens
- Automatic Token Refresh - Seamless token renewal before expiration
- Retry Logic - Automatic retry with exponential backoff for rate limits and errors
- Pagination Support - Handle large datasets efficiently
- Error Handling - Comprehensive error messages with details
- Type Safety - Full TypeScript types for all API entities
- Rate Limit Management - Built-in rate limit handling
Installation
npm install @mcpengine/squarespace-server
Or install from source:
cd servers/squarespace
npm install
npm run build
Configuration
Environment Variables
The server requires at minimum a Squarespace access token:
export SQUARESPACE_ACCESS_TOKEN="your_access_token_here"
For long-term access with automatic token refresh:
export SQUARESPACE_ACCESS_TOKEN="your_access_token"
export SQUARESPACE_REFRESH_TOKEN="your_refresh_token"
export SQUARESPACE_CLIENT_ID="your_client_id"
export SQUARESPACE_CLIENT_SECRET="your_client_secret"
MCP Configuration
Add to your MCP settings file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"squarespace": {
"command": "squarespace-mcp",
"env": {
"SQUARESPACE_ACCESS_TOKEN": "your_access_token",
"SQUARESPACE_REFRESH_TOKEN": "your_refresh_token",
"SQUARESPACE_CLIENT_ID": "your_client_id",
"SQUARESPACE_CLIENT_SECRET": "your_client_secret"
}
}
}
}
Getting Squarespace API Credentials
1. Register Your OAuth Application
Submit a request to Squarespace to register your OAuth application:
- Squarespace Developer Portal
- Provide: App name, icon, redirect URI, terms & privacy links
You'll receive:
client_idclient_secret
2. OAuth Flow
Implement the OAuth2 authorization code flow:
- Authorization URL:
https://login.squarespace.com/api/1/login/oauth/provider/authorize?
client_id=YOUR_CLIENT_ID&
redirect_uri=YOUR_REDIRECT_URI&
scope=website.orders,website.products,website.inventory&
state=RANDOM_STATE&
access_type=offline
- Token Exchange:
curl -X POST https://login.squarespace.com/api/1/login/oauth/provider/tokens \
-H "Authorization: Basic BASE64(client_id:client_secret)" \
-H "Content-Type: application/json" \
-d '{
"grant_type": "authorization_code",
"code": "AUTHORIZATION_CODE",
"redirect_uri": "YOUR_REDIRECT_URI"
}'
API Scopes
Request these scopes for full functionality:
website.orders- Read and manage orderswebsite.orders.read- Read-only order accesswebsite.products- Manage productswebsite.products.read- Read-only product accesswebsite.inventory- Manage inventorywebsite.inventory.read- Read-only inventory accesswebsite.transactions.read- Read transaction data
Usage Examples
List Recent Orders
{
"name": "squarespace_list_orders",
"arguments": {
"modifiedAfter": "2024-01-01T00:00:00Z",
"fulfillmentStatus": "PENDING"
}
}
Create a Product
{
"name": "squarespace_create_product",
"arguments": {
"product": {
"type": "PHYSICAL",
"storePageId": "store_page_id",
"name": "New Product",
"description": "Product description",
"variants": [{
"sku": "SKU-001",
"pricing": {
"basePrice": {
"value": "29.99",
"currency": "USD"
}
},
"stock": {
"quantity": 100,
"unlimited": false
}
}]
}
}
}
Fulfill an Order
{
"name": "squarespace_fulfill_order",
"arguments": {
"orderId": "order_id_here",
"shouldSendNotification": true,
"shipments": [{
"carrierName": "USPS",
"trackingNumber": "1234567890",
"trackingUrl": "https://tools.usps.com/go/TrackConfirmAction?tLabels=1234567890"
}]
}
}
Get Revenue Analytics
{
"name": "squarespace_get_revenue_metrics",
"arguments": {
"startDate": "2024-01-01T00:00:00Z",
"endDate": "2024-01-31T23:59:59Z"
}
}
Check Low Stock Items
{
"name": "squarespace_check_low_stock",
"arguments": {
"threshold": 10
}
}
Architecture
squarespace/
├── src/
│ ├── clients/
│ │ └── squarespace.ts # API client with auth & retry logic
│ ├── types/
│ │ └── index.ts # Complete TypeScript types
│ ├── tools/
│ │ ├── commerce-orders.ts # Order management tools
│ │ ├── commerce-products.ts # Product management tools
│ │ ├── commerce-inventory.ts# Inventory management tools
│ │ ├── commerce-transactions.ts # Transaction tools
│ │ ├── profiles.ts # Customer/subscriber tools
│ │ ├── webhooks.ts # Webhook management tools
│ │ ├── pages.ts # Page management tools
│ │ ├── forms.ts # Form submission tools
│ │ ├── blog.ts # Blog management tools
│ │ └── analytics.ts # Analytics tools
│ ├── ui/
│ │ └── react-app/ # 15 React MCP apps
│ ├── server.ts # MCP server implementation
│ └── main.ts # Entry point
├── package.json
├── tsconfig.json
└── README.md
API Reference
Full documentation: Squarespace Developer Docs
Rate Limits
Squarespace enforces varying rate limits per endpoint with 1-minute cooldowns. The client automatically handles rate limiting with retry logic.
Webhooks
Subscribe to real-time events:
order.create- New order createdorder.update- Order updatedtransaction.create- New transactiontransaction.update- Transaction updatedinventory.update- Inventory changedproduct.create- Product createdproduct.update- Product updatedproduct.delete- Product deleted
Development
Build
npm run build
Type Check
npm run type-check
Development Mode
npm run dev
Troubleshooting
Authentication Errors
- 401 Unauthorized: Token expired or invalid - refresh your token
- 403 Forbidden: Insufficient scopes - request additional permissions
- Token refresh fails: Verify client credentials are correct
Rate Limiting
- 429 Too Many Requests: Built-in retry handles this automatically
- Implement delays between bulk operations for best performance
Common Issues
- Missing environment variables: Ensure
SQUARESPACE_ACCESS_TOKENis set - TypeScript errors: Run
npm run type-checkto diagnose - Module resolution: Verify
package.jsonhas"type": "module"
Contributing
Contributions welcome! Please:
- Follow existing code structure
- Add tests for new tools
- Update documentation
- Run type checking before submitting
License
MIT License - see LICENSE file for details
Support
Changelog
v1.0.0 (2024-02-12)
- Initial release
- 67 tools covering all major Squarespace features
- 15 React MCP apps with dark theme
- OAuth2 authentication with auto-refresh
- Comprehensive error handling and retry logic
- Full TypeScript support
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。