# AI assistant quickstart

Source: https://printedsimply.com/docs/quickstarts/mcp

Quickstart · Claude, Codex, Cursor, Gemini CLI and Grok via xAI API

Use your AI assistant with our print API.

The agent makes the artwork, a person approves it, and we make the thing. Custom stickers, decals, magnets and posters, printed in one US plant. A run of one is an order: every product's minimum_quantity is 1. A test key runs the same order through a $0 sandbox from placed to delivered. Every status change arrives as a signed webhook, on a test order as on a live one. Each artwork file is checked at the size it prints before a live order is charged. An order line can declare how its artwork was made and who approved it, and the order and its webhooks carry that declaration.

About 3 minutes $0 sandbox key Ends with a sandbox order on its way

## Connect your AI assistant

Your assistant can use our API through MCP, a standard way to connect AI tools. Choose your setup below. Other assistants can use the same remote server or the [REST API](https://printedsimply.com/docs/api-reference).

Server URL

Remote server:

```
https://printedsimply.com/api/mcp
```

Start with a dedicated [test API key](https://printedsimply.com/dashboard/api-keys) and only the permissions you need. Catalog browsing needs products:read. Add the scopes listed below when you are ready to test the order workflow. Keep keys in your client's secure configuration, never in a chat, a public repository or a URL.

**Claude Claude Code test setup; Claude connector for live access**

For a test connection, add this entry to Claude Code’s .mcp.json and set PRINTEDSIMPLY_TEST_API_KEY in the environment that starts Claude Code. Check it with /mcp. In Claude’s custom connector UI, the server URL uses browser sign-in: that grants live-account access, not test mode. Review its scopes and spend caps before allowing live orders.

Claude Code test setup; Claude connector for live access:

```json
{
  "mcpServers": {
    "printedsimply": {
      "type": "http",
      "url": "https://printedsimply.com/api/mcp",
      "headers": {
        "Authorization": "Bearer ${PRINTEDSIMPLY_TEST_API_KEY}"
      }
    }
  }
}
```

[Official Claude setup guide](https://code.claude.com/docs/en/mcp)

**Codex Codex app, CLI and IDE**

Add this entry to your Codex config.toml. Make your Printed Simply test key available as PRINTEDSIMPLY_TEST_API_KEY in the environment that starts Codex, then check the server in MCP settings.

Codex app, CLI and IDE:

```toml
[mcp_servers.printedsimply]
url = "https://printedsimply.com/api/mcp"
bearer_token_env_var = "PRINTEDSIMPLY_TEST_API_KEY"
```

[Official Codex setup guide](https://developers.openai.com/codex/mcp)

**Cursor Cursor MCP settings**

Add this server to .cursor/mcp.json. Set PRINTEDSIMPLY_TEST_API_KEY in the environment that starts Cursor, then enable the server in its MCP settings.

Cursor MCP settings:

```json
{
  "mcpServers": {
    "printedsimply": {
      "url": "https://printedsimply.com/api/mcp",
      "headers": {
        "x-api-key": "${env:PRINTEDSIMPLY_TEST_API_KEY}"
      }
    }
  }
}
```

[Official Cursor setup guide](https://cursor.com/docs/mcp)

**Gemini Gemini CLI**

Use Gemini CLI and add this entry to its settings.json. Set PRINTEDSIMPLY_TEST_API_KEY in your environment, then use /mcp to check the connection. This is a CLI setup, not a Gemini chat-app connector.

Gemini CLI:

```json
{
  "mcpServers": {
    "printedsimply": {
      "httpUrl": "https://printedsimply.com/api/mcp",
      "headers": {
        "x-api-key": "${PRINTEDSIMPLY_TEST_API_KEY}"
      }
    }
  }
}
```

[Official Gemini setup guide](https://geminicli.com/docs/tools/mcp-server/)

**Grok xAI Responses API**

In your server-side xAI integration, add this object to the Responses API tools array. It uses your Printed Simply test key and limits this first connection to catalog reads. Your xAI account and model access are separate. This does not add a connector to grok.com.

xAI Responses API:

```python
import os

printed_simply_tool = {
    "type": "mcp",
    "server_label": "printedsimply",
    "server_url": "https://printedsimply.com/api/mcp",
    "headers": {
        "x-api-key": os.environ["PRINTEDSIMPLY_TEST_API_KEY"]
    },
    "allowed_tools": ["search_catalog", "get_product"]
}
```

[Official Grok setup guide](https://docs.x.ai/developers/tools/remote-mcp)

### Start with a useful request

Copy a prompt after connecting. Designs need your assistant's image tools; publishing needs its store connection. These examples ask for review before publishing or placing an order.

Design a product:

```
Find the available sticker shapes, materials and sizes at Printed Simply. Help me develop a botanical sticker collection using my design tools. Check the final artwork against the exact product requirements. Do not place an order.
```

Prepare a listing:

```
Use the actual Printed Simply product options to draft a title, description and size choices for my sticker listing. Get a current cost estimate so I can choose my selling price. If my store is connected, prepare a draft there and ask me before publishing. Do not invent product claims or place an order.
```

Check an order:

```
Confirm whether my Printed Simply connection is in test or live mode. Find my selected product and its supported quantities, check my artwork, and show an itemized quote with shipping and tax for the address I provide. Ask me to approve the final total before placing any order.
```

For live automation, use a separate live key with spend caps and only the required scopes. A live order can charge your saved payment method and enter production; prompt text alone is not a payment approval control.

**Run a $0 test order end to end**

## Step 1: Create a sandbox key

In the dashboard, open API keys and create a key in Test mode. It starts with ps_test_ — test keys are free, never charge a card, and never reach a print facility. You can create one before adding a payment method.

[Create a test key](https://printedsimply.com/dashboard/api-keys?env=test)

key:

```
ps_test_YOUR_KEY
```

A live key (ps_live_) takes the same requests. A real order also needs a card on file and your own artwork: Going live, at the end of this page, has the four changes.

## Step 2: Point your client at the MCP endpoint

Use the setup for your assistant above. The server is hosted by Printed Simply; use your client's remote HTTP connection with sign-in or a test-key header. The generic header example below is for clients that support this configuration format.

config:

```json
{
  "mcpServers": {
    "printedsimply": {
      "url": "https://printedsimply.com/api/mcp",
      "headers": { "x-api-key": "ps_test_YOUR_KEY" }
    }
  }
}
```

URL only:

```
https://printedsimply.com/api/mcp
```

Browser sign-in on a URL-only client grants live-account access, not sandbox access. Review its scopes and spend caps. For the test order below, use a test-key header instead. Keep keys in secure settings or environment variables, never in chat or URLs. The optional keyless demo at https://printedsimply.com/api/mcp?profile=visitor uses a shared test account when available; use your own test key for a full account workflow.

## Step 3: See what it can do

The server carries 28 tools, the ones for ordering what PrintedSimply makes: find a product, price it, check the artwork, place the order and follow it to the door. Your client lists them as soon as it connects.

tools:

```
search_catalog         Search the catalog
get_product            Get a product
get_product_options    List custom-size options
recommend_products     Recommend products
estimate_shipping      Estimate shipping
get_calendar           Get the plant calendar
quote_order            Quote an order
estimate_pricing       Estimate a price
create_mockup          Render a product mockup
validate_artwork       Check a print file
create_order           Place an order
reorder                Place an order again
get_order_status       Get an order's status
track_order            Track a shipment
list_orders            List orders
cancel_order           Cancel an order
get_order_events       Get an order's events
update_order_address   Change an order's address
update_order_shipping  Change an order's shipping
add_order_item         Add an item to an order
update_order_item      Change an item's quantity
cancel_order_item      Cancel one order item
whoami                 Check this key
check_setup            Check account setup
list_assets            List uploaded files
get_asset              Get an uploaded file
upload_asset           Upload a file
delete_asset           Delete an uploaded file
```

Cancelling or changing an order before production is among these tools; get_order_status's actions says what an order still takes. The rest of your account (webhooks) is on the dashboard and the REST API, with the same key.

## Step 4: Ask for the order in plain English

First ask the assistant to run whoami and confirm test mode. Stop if it reports live mode. It can then find a supported SKU and quantity, check the artwork and prepare your sandbox order for review.

prompt:

```
Run whoami and confirm this is a test key. Stop if it is live.
Find a die-cut sticker and its supported quantities. Prepare a quote
for 100 stickers using the sample artwork and test address I provide.
Show me the total and ask for approval before placing the test order.
```

## Step 5: Skip the wait

The assistant reads each step with track_order as the sandbox moves the order on. To move it now, simulate it over REST with the same key and the order_id the assistant was given.

shell:

```bash
curl -X POST "https://printedsimply.com/api/v1/order/test_ord_YOUR_ORDER_ID/simulate" \
  -H "x-api-key: ps_test_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"target_state": "shipped"}'
```

Left alone, a sandbox order moves on by itself: a scheduled job takes it to in_production, shipped and delivered over about five minutes, firing the same signed webhooks at each step. simulate does not wait for that schedule. It takes in_production, shipped, delivered, cancelled or issue_flagged, and only on a test key. An order the schedule has already delivered answers 400 already_terminal; to rehearse the step again, place a new order with a new reference and Idempotency-Key (the sample uses one value for both; the same key replays the delivered order, and the same reference under a new key is refused 409 duplicate_reference).

## Step 6: Open the tracking link and watch it deliver

create_order returns the tracking link straight into the conversation. Open it, then ask the assistant to check again: it calls track_order and reads you the new status, until it is delivered.

Sandbox orders run the real lifecycle on a compressed clock: created → in_production → shipped → delivered, firing genuinely HMAC-signed webhooks at every transition through the same delivery pipeline live orders use. Leave the tracking page open.

## Going live

The sandbox order above never charges, prints or ships. A real one takes four changes.

### Add a card in Billing

A live order is charged to the card on file when it is placed. Without one, POST /v1/order answers 402 no_payment_method and nothing is placed.

[Open Billing](https://printedsimply.com/dashboard/billing)

### Create a live key

On the API keys page, create a key in Live mode. It starts with ps_live_ and is shown in full once, so store it where your server reads secrets, never in a browser.

[Create a live key](https://printedsimply.com/dashboard/api-keys?env=live)

### Send the same request with your own artwork

Swap in the live key, your customer's address and your artwork: an https link to the file (PNG, PDF or SVG), or the id POST /v1/assets returns, as print_file. A live order's artwork is checked before anything is charged: a line with no artwork answers 422 artwork_required, and a file that cannot be printed answers 422 artwork_not_printable.

### Subscribe a live-mode webhook

A subscription in test mode receives sandbox events only. For real orders, subscribe your endpoint in live mode (or all) on the Webhooks page or with POST /v1/webhooks, and verify X-PS-Signature-V2 on every delivery.

[Open Webhooks](https://printedsimply.com/dashboard/webhooks)

## Scopes this page needs

A key created without an explicit scope list gets all of them. If you scope the key down, grant at least these:

- `orders:read`
- `orders:write`
- `products:read`
- `pricing:read`
- `assets:read`
- `assets:write`
- `artwork:write`
- `mockups:write`

## Order placed. What's next?

- [Subscribe to webhooks](https://printedsimply.com/docs/webhooks)

  Get order.shipped pushed to you instead of polling — signed, replayable, deduped.

- [Understand the limits](https://printedsimply.com/docs/rate-limits)

  Per-plan rate and daily limits, the headers we return, and how to back off honestly.

- [Browse the API reference](https://printedsimply.com/docs/api-reference)

  Every v1 endpoint, with its required scopes and response shape.

- [Try another quickstart](https://printedsimply.com/docs/quickstarts)

  The same order in curl, TypeScript, Python or PHP, or from your framework.
