01 Software

MCP Server

Connect AI agents to your data via Model Context Protocol

MCP Server

01.software provides an MCP (Model Context Protocol) server that lets AI agents interact with your collections directly. Query, create, update, and delete data through natural language in tools like Claude, Cursor, VS Code, and more.

Setup

Get API Keys

In the 01.software Console, go to your tenant settings to find your API keys. You can also generate the Base64-encoded API key directly from the Console.

Console API Keys
  • Client Key — Public key (read-only)
  • Secret Key — Private key (read/write)
  • API Key — Base64-encoded key for MCP authentication (clientKey:secretKey)

You can also generate the API key programmatically if needed:

import { createApiKey } from '@01.software/sdk'

const apiKey = createApiKey(clientKey, secretKey)
echo -n "your-client-key:your-secret-key" | base64

Configure Your Client

Add the MCP server to your AI tool of choice.

Add via CLI command:

claude mcp add --transport http \
  --header "x-api-key: <your-api-key>" \
  01software https://mcp.01.software/mcp

Or create .mcp.json at your project root:

.mcp.json
{
  "mcpServers": {
    "01software": {
      "type": "http",
      "url": "https://mcp.01.software/mcp",
      "headers": {
        "x-api-key": "<your-api-key>"
      }
    }
  }
}

Add to .cursor/mcp.json (project root or ~/.cursor/mcp.json):

.cursor/mcp.json
{
  "mcpServers": {
    "01software": {
      "url": "https://mcp.01.software/mcp",
      "headers": {
        "x-api-key": "<your-api-key>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json:

mcp_config.json
{
  "mcpServers": {
    "01software": {
      "serverUrl": "https://mcp.01.software/mcp",
      "headers": {
        "x-api-key": "<your-api-key>"
      }
    }
  }
}

Windsurf uses serverUrl instead of url.

Add to .vscode/mcp.json:

.vscode/mcp.json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "01software-api-key",
      "description": "01.software API Key",
      "password": true
    }
  ],
  "servers": {
    "01software": {
      "type": "http",
      "url": "https://mcp.01.software/mcp",
      "headers": {
        "x-api-key": "${input:01software-api-key}"
      }
    }
  }
}

VS Code uses servers instead of mcpServers. The inputs array lets you securely prompt for the API key.

Add to claude_desktop_config.json:

claude_desktop_config.json
{
  "mcpServers": {
    "01software": {
      "url": "https://mcp.01.software/mcp",
      "headers": {
        "x-api-key": "<your-api-key>"
      }
    }
  }
}

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

Available Tools

The MCP server provides 20 tools for collection CRUD and ecommerce operations.

Generic CRUD (7)

ToolDescription
query-collectionQuery a collection with filtering, sorting, and pagination
get-collection-by-idGet a single item by ID
create-collectionCreate a new item
update-collectionUpdate an existing item
delete-collectionDelete an item
update-many-collectionBulk update items matching a filter
delete-many-collectionBulk delete items matching a filter

Order & Fulfillment (6)

ToolDescription
create-orderCreate order with products and shipping
update-orderUpdate order status (auto stock adjustment)
get-orderGet order by order number
checkoutConvert cart to order (stock validation)
create-fulfillmentCreate shipment for order items
update-transactionUpdate transaction status

Returns (3)

ToolDescription
create-returnCreate return request (delivered/confirmed orders)
update-returnUpdate return status (FSM validated)
return-with-refundCombined return + refund operation

Cart (3)

ToolDescription
add-cart-itemAdd product to cart (stock validated)
update-cart-itemUpdate cart item quantity
remove-cart-itemRemove item from cart

Product (1)

ToolDescription
stock-checkBatch check product option stock availability

Write operations require a Secret Key. If you only provided a Client Key, only read operations will be available.

Usage Examples

Once configured, you can interact with your data using natural language:

  • "Show me the latest 10 published products"
  • "Create a new post with title 'Hello World'"
  • "Update all draft posts to published status"
  • "How many orders were created this month?"
  • "Delete the product with ID abc123"

Prompts

The MCP server includes built-in prompts to help AI assistants understand your data:

PromptDescription
sdk-usage-guideSDK usage patterns and best practices
collection-query-helpQuery writing assistance for specific collections
review-codeCode review for SDK integration code

Resources

The MCP server exposes documentation and schema information as resources:

ResourceURIDescription
API Referencedocs://apiREST and GraphQL API documentation
Getting Starteddocs://getting-startedOnboarding guide
Guidesdocs://guidesUsage guides
Collection Schemacollections://schemaCollection field definitions
App Configconfig://appApplication configuration

Supported Collections

All SDK-accessible collections are available through MCP:

  • Tenant — tenants, tenant-metadata, tenant-logos, tenant-og-images
  • Products — products, product-variants, product-options, product-categories, product-tags, product-images, brands, brand-logos
  • Orders — orders, order-products, returns, return-products, exchanges, exchange-products, fulfillments, fulfillment-items, transactions
  • Customers — customers, customer-addresses
  • Carts — carts, cart-items, discounts, shipping-policies
  • Documents — documents, document-categories, document-images
  • Posts — posts, post-categories, post-tags, post-images
  • Media — playlists, playlist-images, musics, media
  • Forms — forms, form-submissions

Security

  • Store your API key securely. Do not share it or commit it to version control.
  • Use environment variables in production environments.
  • The API key grants the same access level as the underlying Client Key + Secret Key pair.

Next Steps

On this page