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.
Clone the repository
Install dependencies:
npm install
Connect to Terminal.shop and create a new token:
ssh terminal.shop -t tokens
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"
}
}
}
}
Restart claude.app and verify the hammer icon appears under the input field
The server provides access to these 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 subscriptionsUse these tools to browse and find products:
Search Products:
search-products
Get Product Details:
get-product-details
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
Create and manage orders:
create-order
Update your account information:
Update Profile:
update-profile
Add Shipping Address:
create-address
Remove Shipping Address:
delete-address
Securely manage payment information:
Generate Secure URL for Payment Information:
collect-card
Add Payment Card:
create-card
Remove Payment Method:
delete-card
Handle recurring coffee subscriptions:
Create New Subscription:
create-subscription
Cancel Existing Subscription:
cancel-subscription
Manage your Terminal.shop account:
Create API Token:
create-token
Delete API Token:
delete-token
Fetch All Account Data:
get-app-data
To get started with the MCP server, try asking Claude to:
The MCP server will handle these requests by accessing the Terminal.shop API with the configured token.
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.
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 > 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"
}
}
}
}
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 explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.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