paprika-mcp

paprika-mcp

Enables natural language interaction with Paprika Recipe Manager to create, search, update recipes, and generate food photos via AI.

Category
访问服务器

README

🌶️ Paprika MCP Server

A Model Context Protocol server that lets you talk to Paprika Recipe Manager through Claude Desktop. Just chat naturally to add recipes, find that thing you made last week, or update cooking times.

Oh, and it can generate food photos for your recipes too (using Flux from Black Forest Lab) if you want them to look fancy.

Creating recipes with natural language

What it does

  • Just talk to add recipes - No forms, no clicking around. Describe it and it's saved
  • AI food photos - Automatically generates images with Flux (~$0.002/image, totally optional)
  • Find stuff fast - Search by ingredient, cooking time, or just random words you remember
  • Update anything - Change one field or rewrite the whole thing
  • Syncs everywhere - Everything updates in your Paprika apps automatically, you see the same thing on your computer, phone, or tablet.

Quick Start

What you need

Installation

Two commands and you're done:

pipx install paprika-mcp
paprika-mcp setup

The setup wizard will ask for your Paprika login, find your MCP clients (Claude Desktop, Claude Code, etc.), and configure everything automatically.

That's it. Restart your MCP client and you're ready to go.

Manual setup (if you prefer)

If you want to configure things yourself:

Install:

pipx install paprika-mcp

Configure Claude Desktop - Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "paprika": {
      "command": "pipx",
      "args": ["run", "paprika-mcp"],
      "env": {
        "PAPRIKA_USERNAME": "your_email@example.com",
        "PAPRIKA_PASSWORD": "your_password",
        "REPLICATE_API_TOKEN": "optional_token_for_images"
      }
    }
  }
}

Other MCP clients (Claude Code, VS Code, Cursor, etc.) use the same config structure, just different file locations.

Restart your MCP client (full quit and reopen).

How to use it

Just talk to Claude like you're texting a friend about recipes:

Create recipes:

Create a Spaghetti Carbonara recipe with:
- 400g spaghetti, 4 eggs, 100g pancetta, 50g Parmesan, black pepper

Instructions:
1. Cook pasta, fry pancetta until crispy
2. Beat eggs with Parmesan
3. Mix hot pasta with pancetta, add eggs off heat
4. Season and serve

Servings: 4, Prep: 10 mins, Cook: 15 mins

Search and filter:

Show me all pasta recipes sorted by prep time
Find recipes with chicken and tomatoes
What can I make in under 30 minutes?

Update recipes:

Change the Carbonara recipe to serve 6 people
Add "Use room temperature eggs" to the notes
Update just the prep time to 15 minutes

Regenerate images:

Regenerate the Carbonara image with rustic style and darker lighting
Create a new photo with close-up view and more cheese visible

CLI Commands

Besides running as an MCP server, there are some handy commands:

# Run the MCP server (this happens automatically when MCP clients call it)
paprika-mcp

# Interactive setup wizard
paprika-mcp setup

# Reconfigure your credentials
paprika-mcp config

# Test if your Paprika login works
paprika-mcp test

# See recent logs from Claude Desktop
paprika-mcp logs

# Show version
paprika-mcp version

AI Image Generation

By default, new recipes get an AI-generated photo using Flux from Black Forest Lab (via Replicate). You'll need a Replicate account and API token.

Setup:

  1. Make an account at replicate.com
  2. Grab your API token from replicate.com/account/api-tokens
  3. Add REPLICATE_API_TOKEN to your Claude Desktop config (see above)

Cost: Around $0.002 per image (pretty cheap)

Don't want images?

Create a recipe without generating an image

Make it look better:

Regenerate image for "Pasta Carbonara" with: overhead view, rustic style, darker background

Works with Multiple MCP Clients

This server works with any MCP-compatible client, not just Claude Desktop:

  • Claude Desktop - The desktop app
  • Claude Code - CLI tool for coding projects
  • VS Code - With the MCP extension
  • Cursor - AI code editor
  • Windsurf - Another AI editor
  • Goose - Terminal-based AI assistant
  • Any other tool that supports MCP

The setup wizard (paprika-mcp setup) will find and configure any of these automatically.

Available Tools

Tool Description
create_recipe Create new recipes with auto-generated images (default)
update_recipe Update any fields while preserving the rest
list_recipes List recipes with pagination, sorting, and filtering
read_recipe Get complete details for a single recipe
delete_recipe Move recipe to trash (requires confirmation)
search_recipes Search by text across all recipe fields
filter_recipes_by_ingredient Find recipes containing specific ingredients
filter_recipes_by_time Filter by prep time or cook time constraints
regenerate_recipe_image Generate new AI photos with custom styling

Advanced Features

Brief Ingredients Pattern

You can add quick ingredient lists to recipe descriptions so you don't have to dig through the measurements:

Ingredients: Spaghetti, Pancetta, Eggs, Parmesan, Pepper

Classic Roman pasta with silky egg sauce and crispy pancetta.

Makes it way easier to check if you have everything before you start cooking.

Pagination and Sorting

Got a ton of recipes? You can page through them and sort however you want:

Show me recipes 50-100 sorted by name
List the next 20 recipes starting from position 40
Sort recipes by prep time, quickest first

Field Selection

Don't need everything? Just ask for the fields you want:

Show just recipe names and UIDs
List recipes but exclude directions and notes

Mix it up

You can combine all this stuff:

Find recipes with "chicken", sort by prep time, show first 10 with only name and ingredients

When stuff breaks

Can't log in

Error: Authentication failed

  • Make sure your login works at paprikaapp.com
  • Cloud sync needs to be on in your Paprika app
  • Double-check you typed your credentials right in the config

Claude can't see the server

Connection issues

  • Use full paths in the config (no ~/ shortcuts)
  • Point to your venv's Python: /full/path/to/venv/bin/python
  • Actually quit Claude Desktop (Cmd+Q on Mac) and reopen it

Import errors

  • Activate your virtual environment: source venv/bin/activate
  • Reinstall everything: pip install -r requirements.txt

Image problems

No images showing up

  • Check that REPLICATE_API_TOKEN is in your Claude Desktop config
  • Make sure your token works at replicate.com/account
  • Don't worry, your recipe still saves fine without the image

Images look wrong

  • Try regenerate_recipe_image with better instructions
  • Be specific: "less sauce", "more garnish", "darker background"

Check the logs

If something's really broken, look at the logs:

  • macOS: ~/Library/Logs/Claude/mcp*.log
  • Windows: %APPDATA%\Claude\Logs\mcp*.log

Development

Run tests:

pytest tests/ -v

Format code:

ruff format src/ tests/

Contributing

Want to help out? Cool. Open an issue to talk about changes or just submit a PR.

License

MIT License - see LICENSE for details.

Thanks to


Note: This is just a side project, not officially affiliated with Paprika or Anthropic.

Questions? Open an issue

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选