goodbook-mcp

goodbook-mcp

A modern Model Context Protocol (MCP) server that works exclusively with PDF files containing food service standards and preparation guidelines. Built following MCP best practices with robust input validation and error handling.

Category
Visit Server

README

Goodbook MCP Server

A modern Model Context Protocol (MCP) server that works exclusively with PDF files containing food service standards and preparation guidelines. Built following MCP best practices with robust input validation and error handling.

Overview

The Goodbook MCP server allows AI assistants to query and retrieve information from food service documentation, including:

  • Food preparation standards
  • Cooking guidelines and methods
  • Food safety information
  • Recipe standards
  • Hygiene and sanitation requirements

Modern Architecture

This server follows current MCP best practices:

  • Zod input validation for all tool parameters
  • Proper STDIO usage with console.error for logging
  • Robust error handling with detailed error messages
  • Optimized tool definitions with automatic schema conversion
  • Comprehensive synonym support for Russian cooking terms
  • Clean separation of concerns between parsing, validation, and execution

Features

Available Tools

  1. search_food_standards: Search for specific food preparation standards, recipes, or cooking guidelines
  2. get_cooking_guidelines: Get cooking guidelines and standards for specific dishes or cooking methods
  3. list_sections: List all available sections in the food service standards document
  4. get_section_content: Get content from a specific section of the food standards document
  5. get_food_safety_info: Get food safety information and hygiene standards
  6. find_recipe_standards: Find standardized recipes and preparation methods for specific dishes

Installation

  1. Ensure you have Node.js 18+ installed
  2. Clone or download this project
  3. Install dependencies:
    npm install
    
  4. REQUIRED: Place your PDF file named menu.pdf in the root directory

Usage

Running the Server

npm start

The server will start and listen for MCP protocol messages via stdio.

Development Mode

npm run dev

This will start the server with auto-reload on file changes.

MCP Client Configuration

To use this server with an MCP-compatible client, add the following configuration:

Claude Desktop Configuration

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "goodbook": {
      "command": "node",
      "args": ["c:/указываем-полный-путь-к-файлу/mcp/src/index.js"],
      "env": {}
    }
  }
}

Other MCP Clients

Configure your MCP client to run:

node src/index.js

Tool Usage Examples

Search for Food Standards

Use the search_food_standards tool to find information about temperature requirements:
- query: "температура приготовления"
- section: (optional) specify a particular section

Get Cooking Guidelines

Use get_cooking_guidelines to get preparation methods:
- dish_type: "паста"
- section: (optional)

Food Safety Information

Use get_food_safety_info for safety guidelines:
- topic: "хранение мяса"

File Structure

goodbook-mcp-server/
├── src/
│   ├── index.js          # Main MCP server
│   ├── tools.js          # Tool implementations
│   └── pdf-parser.js     # PDF parsing logic
├── menu.pdf              # Source PDF document
├── package.json          # Project configuration
└── README.md            # This file

Requirements

  • Node.js 18.0.0 or higher
  • PDF document (menu.pdf) containing food service standards
  • MCP-compatible client (like Claude Desktop)

Error Handling

The server includes comprehensive error handling for:

  • PDF parsing failures
  • Missing sections
  • Invalid search queries
  • Tool execution errors

All errors are returned as structured responses to the MCP client.

Development

Adding New Tools

  1. Add tool definition to getToolDefinitions() in tools.js
  2. Implement handler method in GoodbookTools class
  3. Add case to handleTool() switch statement

Modifying PDF Parsing

Edit the PDFParser class in pdf-parser.js to:

  • Change section detection patterns
  • Modify content extraction logic
  • Add new search capabilities

License

MIT License

Support

For issues or questions, please check the error logs when running the server. The server outputs detailed logging information to help diagnose problems.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured