Recipes MCP Server
README.md
# Recipes MCP Server
A basic Model Context Protocol (MCP) server in Python that provides a list of recipes and detailed descriptions for individual recipes.
## Capabilities
### Tools
- `list_recipes`: Returns all available recipes with their `id`, `name`, and `summary`.
- `get_recipe(recipe_id)`: Returns the full markdown description (times, servings, ingredients, and instructions) for a single recipe by ID or name.
### Resources
- `recipes://list`: JSON list of all available recipes.
- `recipes://{recipe_id}`: Markdown description of a single recipe.
## Running the Server
By default, the server runs over `streamable-http` on `127.0.0.1:8000` (`/mcp`) and prints basic server information (name, version, transport, URL, port, tools, and resources) on startup:
```bash
uv run mcpserver
```
Or via the `src/main.py` entry point:
```bash
uv run python src/main.py
```
Optional flags:
- `--host` (default: `127.0.0.1`)
- `--port` (default: `8000`)
- `--path` (default: `/mcp`)
- `--transport` (`streamable-http`, `sse`, or `stdio`; default: `streamable-http`)
You may also test it with MCP Inspector
```bash
npx @modelcontextprotocol/inspector
```
selecting "Add new server", "Manually", "MCPServer", "http://127.0.0.1:8000/mcp"
## Running Tests
```bash
uv run python -m unittest discover -s tests -v
```
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues