CONFIGURATION-EN.md•2.15 kB
# Goodbook MCP Server Configuration
## Claude Desktop Configuration
To integrate the Goodbook MCP server with Claude Desktop, add the following to your Claude Desktop configuration file:
**Location of config file:**
- Windows: `%APPDATA%\Claude\claude_desktop_config.json`
- macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
- Linux: `~/.config/Claude/claude_desktop_config.json`
**Configuration:**
```json
{
"mcpServers": {
"goodbook": {
"command": "node",
"args": ["c:/указываем-полный-путь-к-файлу/mcp/src/index.js"],
"env": {}
}
}
}
```
## Alternative Configuration for Different Environments
### Using npm start
```json
{
"mcpServers": {
"goodbook": {
"command": "npm",
"args": ["start"],
"cwd": "c:/указываем-полный-путь-к-папке/mcp",
"env": {}
}
}
}
```
### For Development (with auto-reload)
```json
{
"mcpServers": {
"goodbook": {
"command": "npm",
"args": ["run", "dev"],
"cwd": "c:/указываем-полный-путь-к-папке/mcp",
"env": {}
}
}
}
```
## Testing Connection
After adding the configuration:
1. Restart Claude Desktop
2. Start a new conversation
3. The Goodbook tools should be available automatically
4. Try using phrases like:
- "Search for cooking temperature standards"
- "What are the food safety requirements?"
- "Show me sections available in the food standards"
## Environment Variables
You can add environment variables if needed:
```json
{
"mcpServers": {
"goodbook": {
"command": "node",
"args": ["c:/указываем-полный-путь-к-файлу/mcp/src/index.js"],
"env": {
"NODE_ENV": "production",
"DEBUG": "false"
}
}
}
}
```
## Troubleshooting
If the server doesn't connect:
1. Check that Node.js is installed and accessible
2. Verify the path to the server file is correct
3. Ensure the `menu.pdf` file exists in the project directory
4. Check Claude Desktop logs for error messages
5. Try running the server manually: `node src/index.js`