DevTerminalShopMCP - Terminal Coffee Shop
Terminal.Shop let's you order coffee from the comfort of your terminal using SSH. They also have APIs for the same. This repo creates an MCP server so that these APIs can be used as Tools by an MCP client.
Features
- Browse available coffee products with descriptions and prices
- Manage shipping addresses
- Place an order for your coffee beans
Prerequisites
- Python 3.x
- Terminal Shop Client
- FastMCP Server
Installation
- Clone the repository:
git clone https://github.com/pramodith/DevTerminalShopMCP.git
cd DevTerminalShopMCP- Set up a virtual environment:
python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate
- Install dependencies:
uv sync
Usage
- Start the MCP server:
python src/mcp_server.py or uv --directory PATH_TO_SRC run mcp_server.py
- The server will guide you through:
- Browsing available coffee products
- Entering shipping information
- Processing payment
- Confirming your order
Project Structure
src/mcp_server.py- Main server implementationutils.py- Utility functions for Terminal Shop operationstools/terminal_shop_tools.py- Core shopping functionality
Environment Variables
Create a .env file in the root directory with:
TERMINAL_SHOP_API_KEY=your_api_key
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.