Terminal.shop E-commerce
STDIOMCP server for interacting with terminal.shop, allowing AI assistants to manage products and orders.
MCP server for interacting with terminal.shop, allowing AI assistants to manage products and orders.
This project implements a mcp server for interacting with the terminal.shop. It allows ai assistants to seamlessly browse products, manage shopping carts, place orders, and handle subscriptions through Terminal.shop's API.
Clone this repository
Install dependencies:
npm install
Connect to Terminal.shop and create a new token:
ssh terminal.shop -t tokens
Open claude.app, go to settings, click 'developer' option and 'edit config':
{
"mcpServers": {
"terminal-shop-mcp": {
"command": "node",
"args": ["path_to_folder/server.js"],
"env": {
"TERMINAL_API_TOKEN": "token here"
}
}
}
}
Restart claude.app, and make sure you see hammer icon under input
Ask claude to get list of products or create a new address, subscription etc
The MCP server provides the following 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 subscriptionsThe server provides various tools for interacting with Terminal.shop:
search-products
- Search for products by keywordget-product-details
- Get detailed information about a specific productadd-to-cart
- Add a product variant to the cartset-cart-address
- Set the shipping address for the cartset-cart-card
- Set the payment method for the cartclear-cart
- Empty the shopping cartcheckout
- Convert the cart to an ordercreate-order
- Create an order directly without using the cartupdate-profile
- Update user profile informationcreate-address
- Add a new shipping addressdelete-address
- Remove a shipping addresscollect-card
- Generate a secure URL for adding payment informationcreate-card
- Add a card using a Stripe tokendelete-card
- Remove a payment methodcreate-subscription
- Start a new coffee subscriptioncancel-subscription
- Cancel an existing subscriptioncreate-token
- Create a new personal access tokendelete-token
- Delete a personal access tokenget-app-data
- Fetch all account data at onceThe server includes several prompt templates to help AI assistants provide better responses:
browse-products
- Guide for browsing and finding productsmanage-cart
- Help with shopping cart managementplace-order
- Assistance with placing an ordermanage-subscription
- Support for subscription managementmanage-profile
- Guide for profile and address managementThis MCP server is built on top of the Terminal.shop API. For detailed information about the underlying API, refer to the Terminal API documentation.
This project is licensed under the MIT License - see the LICENSE file for details.