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
Setup instructions
Provider
pashaydev
Release date
Mar 25, 2025
Language
TypeScript
Package
Stats
232 downloads
1 star

This server enables AI assistants to interact with Terminal.shop, allowing them to browse products, manage shopping carts, place orders, and handle subscriptions through a structured API interface.

Setup Requirements

Prerequisites

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

Installation Steps

  1. Clone the repository

  2. Install dependencies:

    npm install
    
  3. Connect to Terminal.shop and create a new token:

    ssh terminal.shop -t tokens
    
  4. Configure Claude by opening claude.app, navigating to settings, clicking 'developer' option and 'edit config':

    {
      "mcpServers": {
        "terminal-shop-mcp": {
          "command": "node",
          "args": ["path_to_folder/server.js"],
          "env": {
            "TERMINAL_API_TOKEN": "token here"
          }
        }
      }
    }
    
  5. Restart claude.app and verify the hammer icon appears under the input field

Using the MCP Server

Available Resources

The server provides access to these 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

Use these tools to browse and find products:

  • Search Products:

    search-products
    
  • Get Product Details:

    get-product-details
    

Shopping Cart Operations

Manage your shopping experience with these tools:

  • Add Items to Cart:

    add-to-cart
    
  • Set Shipping Address:

    set-cart-address
    
  • Set Payment Method:

    set-cart-card
    
  • Empty Cart:

    clear-cart
    
  • Complete Purchase:

    checkout
    

Order Management

Create and manage orders:

  • Create Order Directly:
    create-order
    

User Profile Management

Update your account information:

  • Update Profile:

    update-profile
    
  • Add Shipping Address:

    create-address
    
  • Remove Shipping Address:

    delete-address
    

Payment Methods

Securely manage payment information:

  • Generate Secure URL for Payment Information:

    collect-card
    
  • Add Payment Card:

    create-card
    
  • Remove Payment Method:

    delete-card
    

Subscription Management

Handle recurring coffee subscriptions:

  • Create New Subscription:

    create-subscription
    
  • Cancel Existing Subscription:

    cancel-subscription
    

Account Tools

Manage your Terminal.shop account:

  • Create API Token:

    create-token
    
  • Delete API Token:

    delete-token
    
  • Fetch All Account Data:

    get-app-data
    

Example Interactions

To get started with the MCP server, try asking Claude to:

  • "Show me a list of available coffee products"
  • "Add the Ethiopian light roast to my cart"
  • "Create a new shipping address"
  • "Set up a monthly subscription for medium roast coffee"
  • "Complete my purchase"

The MCP server will handle these requests by accessing the Terminal.shop API with the configured token.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

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

See the official Claude Code MCP documentation for more details.

For 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 > Tools & Integrations and click "New MCP Server".

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

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

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 explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

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

2. Add this to your configuration file:

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

3. Restart Claude Desktop for the changes to take effect

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