Skip to main content
Glama
recipesage-mcp

recipesage-mcp

by BenTev28
README.md
# recipesage-mcp

An **unofficial** [Model Context Protocol](https://modelcontextprotocol.io) server for [RecipeSage](https://github.com/julianpoy/RecipeSage), the self-hostable recipe manager. With it, Claude and other MCP clients can search, read and edit your recipes, labels, shopping lists and meal plans.

> Not affiliated with or endorsed by RecipeSage. "RecipeSage" is used only to say what this connects to.

**Status:** beta (see the [roadmap](docs/ARCHITECTURE.md#roadmap)). It runs in two ways:

- **http (multi-user):** a remote server for claude.ai custom connectors, the Claude apps and other MCP clients. Each person signs in with their own RecipeSage account on the server's sign-in page; the server never stores passwords.
- **stdio (single user):** run locally by Claude Code, Claude Desktop or another MCP client, with your credentials in `.env`.

## Tools

| Tool | What it does |
|---|---|
| `search_recipes` | Full-text search, with label filters and optionally friends' shared recipes |
| `find_recipes_by_ingredients` | "What can I make with…": recipes using any of the given ingredients |
| `get_recipe` | One recipe in full: ingredients, instructions, notes, nutrition, linked recipes |
| `list_labels` | Your labels and how many recipes have each |
| `list_shopping_lists`, `get_shopping_list` | Your shopping lists and their items |
| `list_meal_plans`, `get_meal_plan_items` | Your meal plans and what's planned between two dates |
| `whoami` | Which account the server is signed in as |

**Changing data** (on by default; `ENABLE_WRITE_TOOLS=false` turns them off):

| Tool | What it does |
|---|---|
| `create_recipe` | A new recipe; only the title is required |
| `import_recipe_from_url` | Save a recipe from a web page (RecipeSage extracts it) |
| `update_recipe` | Change some fields of your recipe; everything else stays as it was |
| `add_labels_to_recipe`, `remove_labels_from_recipe` | Tag or untag your recipe |
| `add_shopping_list_items`, `add_recipe_to_shopping_list` | Add items, or a recipe's ingredients, to a list |
| `check_off_shopping_list_items` | Mark items as bought (or un-check them) |
| `add_meal_plan_items` | Schedule meals |

**Deleting** (off by default; `ENABLE_DELETE_TOOLS=true`, and each call needs `confirm=true`): `delete_recipe`, `remove_shopping_list_items`, `remove_meal_plan_items`.

Only a recipe's owner can change it: friends' shared recipes are read-only. Nothing deletes in bulk. Results include links to open recipes in RecipeSage when `RECIPESAGE_WEB_URL` is set.

## Quick start (stdio, single user)

Works with any RecipeSage instance, self-hosted or recipesage.com. Requires Python 3.13+ and [uv](https://docs.astral.sh/uv/).

```bash
git clone https://github.com/<owner>/recipesage-mcp && cd recipesage-mcp
cp .env.example .env    # then set RECIPESAGE_API_URL and your credentials
uv run recipesage-mcp
```

To use it from Claude Code:

```bash
claude mcp add recipesage -- uv run --directory /path/to/recipesage-mcp recipesage-mcp
```

## Multi-user server (http)

Run the Docker image `ghcr.io/<owner>/recipesage-mcp` behind your HTTPS reverse proxy, then add `<MCP_PUBLIC_URL>/mcp` as a custom connector or remote MCP server; the client walks each person through signing in. The [deployment guide](docs/deployment.md) covers the compose file, Caddy and nginx examples and connecting claude.ai. Without Docker: set `MCP_TRANSPORT=http`, `MCP_PUBLIC_URL` and `TOKEN_ENCRYPTION_KEY` and run `uv run recipesage-mcp`.

All settings are environment variables, documented in [docs/configuration.md](docs/configuration.md). Accounts that sign in to RecipeSage only with Google or Apple have no password and can't use this yet.

## Documentation

- [Configuration](docs/configuration.md)
- [Deployment](docs/deployment.md)
- [Architecture and roadmap](docs/ARCHITECTURE.md)
- [Design decisions](docs/decisions/)
- [Contributing](CONTRIBUTING.md) and [security policy](SECURITY.md)

## Support

If this project is useful to you, you can [support my work on Ko-fi](https://ko-fi.com/han_duo). Donations are entirely voluntary, and everything here stays free.

## License

[MIT](LICENSE)