cooklang-mcp-server
cooklang-mcp-server
CookCLI レシピサーバー(cook server、ghcr.io/cooklang/cookcli に同梱)を MCP ツールとしてコーディングエージェントに公開する、小さな FastMCP サーバーです。これにより、エージェントは CookCLI HTTP API 経由で Cooklang レシピの閲覧、読み取り、書き込み、削除、検索ができます。
これは必要ですか?
レシピに HTTP 経由でアクセスする場合は、このサーバーを使用してください。すなわち、別のマシンや NAS 上で動作している cook server、またはシェルアクセスを持たない Claude Desktop などの MCP クライアントです。
レシピがローカルファイルであり、エージェントがコマンドを実行できる場合(Claude Code、Codex)は、公式の cooklang-skills プラグインの方が適しています。これは cook CLI を直接操作し、食事計画、パントリーの追跡、通路ごとにグループ化された買い物リスト、エクスポートなど、より広い範囲をカバーします。
Related MCP server: Nextcloud Cookbook MCP Server
仕組み
各 MCP ツールは CookCLI HTTP エンドポイントに 1:1 で対応します(read_recipe -> GET /api/recipes/{path} など)。このサーバーはステートレスなアダプターです。データを保持せず、パースも行わず、別途 cook server プロセスが実行されている必要があります(要件 を参照)。すべてのレシピは CookCLI のレシピディレクトリに置かれます。
ツール
ツール | 対応先 | 目的 |
|
| フォルダと |
|
| 材料、調理器具、タイマー、手順にパースされた単一のレシピ |
|
| frontmatter を含む Cooklang の生ソース |
|
| Cooklang の生テキストからレシピを作成または上書き |
|
| レシピファイルを完全に削除(元に戻せず、ゴミ箱にも入りません) |
|
| レシピ名と内容に対する全文検索 |
|
| コレクションの件数( |
path は CookCLI サーバーのレシピディレクトリを基準にした相対パスです(例: Dolci/bunet-piemontese。.cook 拡張子は省略可能です)。write_recipe は親フォルダがすでに存在している必要があり、アトミックに書き込みます(一時ファイル + リネーム)。タイトル画像は HTTP 経由では書き込めません。レシピディレクトリ(または Docker ボリューム)内の .cook ファイルの隣に配置してください。
要件
Python >= 3.10 と uv
実行中の CookCLI サーバー、例:
docker run -d --name cooklang-cookcli-1 -p 9080:9080 \ -v cooklang_recipes:/recipes \ ghcr.io/cooklang/cookcli server --host 0.0.0.0 /recipesまたは、CookCLI をローカルにインストールしている場合は、
cook server ./my-recipes。
Claude Code に登録する
クローンは不要です。uvx がこのリポジトリから直接サーバーを取得、ビルド、キャッシュします:
claude mcp add cooklang \
--env COOKLANG_SERVER_URL=http://localhost:9080 \
-- uvx --from git+https://github.com/alessmar/cooklang-mcp-server cooklang-mcp-serverまたは .mcp.json / ~/.claude.json で:
{
"mcpServers": {
"cooklang": {
"command": "uvx",
"args": ["--from", "git+https://github.com/alessmar/cooklang-mcp-server",
"cooklang-mcp-server"],
"env": { "COOKLANG_SERVER_URL": "http://localhost:9080" }
}
}
}COOKLANG_SERVER_URL はデフォルトで http://localhost:9080 になります。git URL に @<tag> を追加してバージョンを固定できます。例: ...cooklang-mcp-server@v0.1.0。
ローカル開発
git clone https://github.com/alessmar/cooklang-mcp-server
cd cooklang-mcp-server
uv sync
COOKLANG_SERVER_URL=http://localhost:9080 uv run cooklang-mcp-server注意事項
CookCLI サーバーには認証がなく、CORS はオープンです。localhost または信頼できる LAN 上に置いてください。
/api/reloadは現在の CookCLI では no-op です。サーバーはリクエストのたびにディスクから読み取るため、API 外で行われたファイル変更はすぐに反映されます。
ライセンス
MIT。 LICENSE を参照してください。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to interact with Mealie recipe databases through MCP clients like Claude Desktop.123MIT
- AlicenseNot gradedqualityDmaintenanceIntegrates with the Nextcloud Cookbook app API to enable AI assistants to manage recipes, categories, and keywords. It supports listing, searching, creating, and importing recipes from URLs via a standardized Model Context Protocol interface.MIT
- AlicenseNot gradedqualityCmaintenanceExposes Mealie recipe manager as LLM-callable tools for searching recipes, managing meal plans, and editing shopping lists.MIT
- AlicenseNot gradedqualityAmaintenanceA MCP server for Mealie recipe management. Exposes 43 tools and 1 prompt for AI assistants to search, create, and manage recipes, meal plans, shopping lists, categories, and tags.1,3797MIT
Related MCP Connectors
Free public MCP for AI agents — 193 tools, 44 workflows. No API key.
MCP server exposing the Backtest360 engine API as tools for AI agents.
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/alessmar/cooklang-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server