Terminal.shop MCP server

Integrates with Terminal.shop's e-commerce platform to enable browsing coffee products, managing shopping carts, and handling subscriptions with secure Stripe payment processing
Back to servers
Provider
pashaydev
Release date
Mar 25, 2025
Language
TypeScript
Package
Stats
119 downloads
1 star

The Terminal.shop MCP Server allows AI assistants to interact with Terminal.shop's API, enabling seamless browsing of products, cart management, order placement, and subscription handling. It creates a bridge between AI assistants and the e-commerce functionality of Terminal.shop.

Prerequisites

Before installing the Terminal.shop MCP Server, you'll need:

  • Node.js
  • A Terminal.shop account
  • A Terminal.shop API token

Installation

Step 1: Clone the repository

Clone the repository to your local machine.

Step 2: Install dependencies

npm install

Step 3: Generate a Terminal.shop API token

Connect to Terminal.shop and create a new token:

ssh terminal.shop -t tokens

Step 4: Configure Claude

Open claude.app, go to settings, click the 'developer' option and then 'edit config'. Add the following configuration:

{
  "mcpServers": {
    "terminal-shop-mcp": {
      "command": "node",
      "args": ["path_to_folder/server.js"],
      "env": {
        "TERMINAL_API_TOKEN": "token here"
      }
    }
  }
}

Replace "path_to_folder/server.js" with the actual path to the server.js file in your cloned repository, and "token here" with your Terminal.shop API token.

Step 5: Restart Claude

Restart claude.app and verify the installation was successful by checking for the hammer icon under the input field.

Usage

Once installed, you can interact with Terminal.shop through Claude by asking it to perform various operations.

Available Resources

The MCP server provides access to the following Terminal.shop resources:

  • terminal://products - List all available products
  • terminal://product/{id} - Get details for a specific product
  • terminal://orders - View order history
  • terminal://profile - Access user profile information
  • terminal://addresses - Manage shipping addresses
  • terminal://cards - Manage payment methods
  • terminal://cart - View current shopping cart
  • terminal://subscriptions - Manage coffee subscriptions

Product Management

Search for products and view product details:

search-products <keyword>
get-product-details <product_id>

Cart Operations

Manage your shopping cart with these commands:

add-to-cart <variant_id>
set-cart-address <address_id>
set-cart-card <card_id>
clear-cart
checkout

Order Management

Create and manage orders:

create-order <parameters>

User Profile Management

Update your profile information and manage addresses:

update-profile <parameters>
create-address <address_details>
delete-address <address_id>

Payment Method Management

Manage your payment methods securely:

collect-card
create-card <stripe_token>
delete-card <card_id>

Subscription Management

Create and manage coffee subscriptions:

create-subscription <parameters>
cancel-subscription <subscription_id>

Account Management

Manage your Terminal.shop tokens and account data:

create-token <parameters>
delete-token <token_id>
get-app-data

Examples

Browsing Products

To search for coffee products, you can ask Claude:

"Show me all available coffee products from Terminal.shop"

Adding Items to Cart

To add a product to your cart:

"Add the Ethiopian Single Origin Coffee to my cart"

Placing an Order

To place an order with products in your cart:

"Check out my cart and use my default shipping address and payment method"

Managing Subscriptions

To set up a coffee subscription:

"Create a biweekly subscription for the House Blend coffee"

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later