内容
# MCP Michelin Guide Server
[](https://www.typescriptlang.org/)
[](https://modelcontextprotocol.io/)
[](https://www.sqlite.org/)
[](LICENSE)
[](https://github.com/ngshiheng/michelin-my-maps)
## About
An MCP (Model Context Protocol) server that lets you search Michelin Guide restaurants worldwide from Claude Code.
Powered by a local SQLite database with the FTS5 full-text search engine for fast, accurate queries -- with a web fallback to supplement the latest information from the official Michelin Guide site.
## Key Features
- **Multi-criteria restaurant search** -- Combine free-text search, city, country, cuisine type, award level, Green Star, and price level
- **Restaurant detail lookup** -- Get 17-field details by name (partial match) or Michelin Guide URL
- **Web fallback search** -- Fetches the latest info from the Michelin Guide website when local data is insufficient
- **~19,400 restaurants worldwide** -- Based on open-source data that is updated regularly
- **Local-first architecture** -- Fast search with SQLite + FTS5, no network required
## Architecture
```mermaid
flowchart LR
subgraph "Data Pipeline"
CSV["CSV Source Data<br/>ngshiheng/michelin-my-maps"]
SETUP["src/scripts/setup-data.ts"]
DB["data/michelin.db<br/>SQLite + FTS5"]
CSV -->|Download & Parse| SETUP -->|Create Tables & Index| DB
end
subgraph "MCP Server"
INDEX["src/index.ts<br/>stdio transport"]
DB_MOD["src/db.ts<br/>Query Engine"]
subgraph "Tools"
T1["search_restaurants<br/>Multi-criteria Search"]
T2["get_restaurant_detail<br/>Detail Lookup"]
T3["search_latest_info<br/>Web Fallback"]
end
INDEX --- T1 & T2 & T3
T1 & T2 -->|Query| DB_MOD
T3 -->|Query| DB_MOD
end
DB_MOD -->|Local Query| DB
T3 -->|Fallback| WEB["guide.michelin.com"]
CLAUDE["Claude Code"] <-->|MCP stdio| INDEX
```
## Prerequisites
| Item | Version | Note |
|------|---------|------|
| **Node.js** | >= 20 | LTS recommended |
| **npm** | >= 9 | Included with Node.js |
| **Claude Code** | Latest | MCP client |
## Installation
### 1. Clone the repository
```bash
git clone https://github.com/anhyobin/michelin-guide-mcp.git
cd michelin-guide-mcp
```
### 2. Install dependencies
```bash
npm install
```
### 3. Build
Compiles the TypeScript sources (including the setup script used in the next step).
```bash
npm run build
```
### 4. Initialize the database
Downloads the CSV source data and creates the SQLite database.
```bash
npm run setup
```
This command will:
1. Download the latest CSV from the [ngshiheng/michelin-my-maps](https://github.com/ngshiheng/michelin-my-maps) repository
2. Parse the CSV and clean the data
3. Create `data/michelin.db` with the restaurants table + FTS5 virtual table
## Claude Code Integration
### Option 1: Using .mcp.json (Recommended)
Create or edit a `.mcp.json` file in your project root:
```json
{
"mcpServers": {
"michelin-guide": {
"command": "node",
"args": ["build/index.js"],
"cwd": "/absolute/path/to/michelin-guide-mcp"
}
}
}
```
> Replace `cwd` with the absolute path to your cloned project directory.
### Option 2: Register via Claude Code CLI
```bash
claude mcp add michelin-guide -- node /absolute/path/to/michelin-guide-mcp/build/index.js
```
### Verify the integration
Ask Claude Code a question to confirm the MCP server is working:
```
Find 3-star Michelin restaurants in Tokyo
```
## MCP Tool API Reference
### 1. `search_restaurants` -- Multi-criteria restaurant search
Search restaurants by combining multiple criteria. Results are sorted by award level, returning 20 per page.
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `query` | string | - | Free text search (FTS5 full-text search) |
| `city` | string | - | City name |
| `country` | string | - | Country name |
| `cuisine` | string | - | Cuisine type (e.g., Japanese, French, Italian) |
| `award` | string | - | Award level: `1 Star` \| `2 Stars` \| `3 Stars` \| `Bib Gourmand` \| `Selected Restaurants` |
| `green_star` | boolean | - | Whether the restaurant has a Michelin Green Star |
| `price_level` | number | - | Price level (0=unknown/unpriced, 1=budget to 4=luxury) |
| `page` | number | - | Page number (default: 1) |
**Example response:**
```json
{
"total": 42,
"page": 1,
"totalPages": 3,
"results": [
{
"name": "Sukiyabashi Jiro",
"award": "3 Stars",
"city": "Tokyo",
"country": "Japan",
"cuisine": "Sushi",
"price_level": 4,
"green_star": false,
"url": "https://guide.michelin.com/..."
}
]
}
```
### 2. `get_restaurant_detail` -- Restaurant detail lookup
Look up full details (17 fields) for a restaurant by name or Michelin Guide URL. Returns a candidate list when multiple matches are found.
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Conditional | Restaurant name (partial match supported) |
| `url` | string | Conditional | Michelin Guide URL (exact match) |
Either `name` or `url` must be provided.
**Response fields:**
| Field | Description |
|-------|-------------|
| `name` | Restaurant name |
| `address` | Address |
| `location` | Location info (city, country) |
| `longitude` | Longitude |
| `latitude` | Latitude |
| `city` | City |
| `country` | Country |
| `price` | Price info (original) |
| `price_level` | Price level (1--4) |
| `cuisine` | Cuisine type |
| `award` | Award level |
| `green_star` | Green Star status |
| `url` | Michelin Guide URL |
| `description` | Description |
| `phone_number` | Phone number |
| `website_url` | Website |
| `facilities_and_services` | Facilities and services |
### 3. `search_latest_info` -- Web fallback search
Fetches the latest information from the Michelin Guide website when local database data is insufficient.
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `restaurant_name` | string | Yes | Restaurant name |
| `location` | string | - | Location hint (city, country, etc.) |
## Usage Examples
Ask Claude Code in natural language and the MCP tools are called automatically.
### Restaurant search
```
Find Michelin-starred restaurants in Seoul
```
-> `search_restaurants`: `{ "city": "Seoul" }`
```
Which 3-star French restaurants in France also have a Green Star?
```
-> `search_restaurants`: `{ "country": "France", "cuisine": "French", "award": "3 Stars", "green_star": true }`
```
Find affordable Bib Gourmand Italian restaurants
```
-> `search_restaurants`: `{ "cuisine": "Italian", "award": "Bib Gourmand" }`
### Detail lookup
```
Tell me about Sukiyabashi Jiro
```
-> `get_restaurant_detail`: `{ "name": "Sukiyabashi Jiro" }`
```
Show me this restaurant's info: https://guide.michelin.com/...
```
-> `get_restaurant_detail`: `{ "url": "https://guide.michelin.com/..." }`
### Latest info
```
Get the latest info for a restaurant in Ginza, Tokyo
```
-> `search_latest_info`: `{ "restaurant_name": "...", "location": "Tokyo Ginza" }`
## Updating Data
The source data is updated regularly from [ngshiheng/michelin-my-maps](https://github.com/ngshiheng/michelin-my-maps). To refresh:
```bash
# Remove existing database and recreate
rm -rf data/
npm run setup
```
## Project Structure
```
michelin-guide-mcp/
├── .mcp.json # Claude Code MCP server config
├── package.json # Project metadata and dependencies
├── tsconfig.json # TypeScript configuration
├── .gitignore
├── data/
│ └── michelin.db # SQLite DB (gitignored, generated)
├── src/
│ ├── index.ts # MCP server entry point (stdio)
│ ├── db.ts # DB initialization and queries
│ ├── types.ts # Type definitions
│ ├── utils.ts # Utility functions
│ ├── scripts/
│ │ └── setup-data.ts # CSV download -> SQLite DB setup
│ └── tools/
│ ├── search-restaurants.ts # Multi-criteria search tool
│ ├── get-restaurant-detail.ts # Detail lookup tool
│ └── search-web.ts # Web fallback search tool
└── build/ # Compiled JavaScript output
```
## Tech Stack
| Technology | Purpose |
|------------|---------|
| **TypeScript 5.x** | Type-safe server development |
| **@modelcontextprotocol/sdk** | MCP server framework |
| **better-sqlite3** | High-performance native SQLite bindings |
| **SQLite FTS5** | Full-text search engine |
| **csv-parse** | CSV data parsing |
| **Zod** | Runtime schema validation |
## License
This project is distributed under the [MIT License](LICENSE).
## Credits
- **Restaurant data**: [ngshiheng/michelin-my-maps](https://github.com/ngshiheng/michelin-my-maps) (MIT License)
- Open-source project providing data on ~19,400 Michelin Guide restaurants worldwide
- Updated regularly with the latest data
- **MCP Protocol**: [Model Context Protocol](https://modelcontextprotocol.io/) by Anthropic
MCP 配置
以下是此 MCP Server 的配置信息,可直接复制到 Cursor 或其他 MCP 客户端中使用。
mcp.json
连接信息
猜你喜欢
X视频文案提取
X / Twitter 视频文案提取 MCP Server — 专注解析 X 平台公开视频链接(x.com / twitter.com status...
MarkItDown MCP
MarkItDown-MCP是一个轻量级服务器,用于将URI转换为Markdown。
MarkItDown
将文件和办公文档转换为Markdown的Python工具。
worldmonitor
实时全球情报仪表盘。基于人工智能的新闻聚合、地缘政治监测和基础设施跟踪,提供统一的态势感知界面。
OmniRoute
永不停息的编码。免费 AI 网关 — 一个端点,160+ 提供商,零停机时间。智能 4 级自动降级(订阅 → API → 廉价 →...
文件系统操作
Node.js MCP服务器,用于文件系统操作,支持动态访问控制。