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.
Before installing the Terminal.shop MCP Server, you'll need:
Clone the repository to your local machine.
npm install
Connect to Terminal.shop and create a new token:
ssh terminal.shop -t tokens
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.
Restart claude.app and verify the installation was successful by checking for the hammer icon under the input field.
Once installed, you can interact with Terminal.shop through Claude by asking it to perform various operations.
The MCP server provides access to the following Terminal.shop resources:
terminal://products
- List all available productsterminal://product/{id}
- Get details for a specific productterminal://orders
- View order historyterminal://profile
- Access user profile informationterminal://addresses
- Manage shipping addressesterminal://cards
- Manage payment methodsterminal://cart
- View current shopping cartterminal://subscriptions
- Manage coffee subscriptionsSearch for products and view product details:
search-products <keyword>
get-product-details <product_id>
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
Create and manage orders:
create-order <parameters>
Update your profile information and manage addresses:
update-profile <parameters>
create-address <address_details>
delete-address <address_id>
Manage your payment methods securely:
collect-card
create-card <stripe_token>
delete-card <card_id>
Create and manage coffee subscriptions:
create-subscription <parameters>
cancel-subscription <subscription_id>
Manage your Terminal.shop tokens and account data:
create-token <parameters>
delete-token <token_id>
get-app-data
To search for coffee products, you can ask Claude:
"Show me all available coffee products from Terminal.shop"
To add a product to your cart:
"Add the Ethiopian Single Origin Coffee to my cart"
To place an order with products in your cart:
"Check out my cart and use my default shipping address and payment method"
To set up a coffee subscription:
"Create a biweekly subscription for the House Blend coffee"
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.
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"
]
}
}
}
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.
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.