mmk-mcp
mmk-mcp is a Model Context Protocol (MCP) server for Magic Meal Kits that serves as a tool for AI assistants to check server version information. This server connects to the Magic Meal Kits API and returns structured responses, allowing programmatic checks of the server version through natural language requests. It follows secure authentication practices using API keys, ensuring a clean separation between the API backend and AI integration.
GitHub Stars
0
User Rating
Not Rated
Favorites
0
Views
22
Forks
1
Issues
1
Installation
Difficulty
IntermediateEstimated Time
10-20 minutes
Requirements
Node.js: 18.0.0以上npm: 8.0.0以上+1 more
Installation
Installation
Prerequisites
Please specify required software and versions:Node.js: 18.0.0 or higher
npm: 8.0.0 or higher
Claude Desktop: Latest version
Installation Steps
1. Clone Repository
bash
git clone https://github.com/pureugong/mmk-mcp
cd mmk-mcp
2. Install Dependencies
bash
npm install
3. Configure Claude Desktop
Editclaude_desktop_config.json to add the MCP server:
json
{
"mcpServers": {
"magic-meal-kits": {
"command": "npx",
"args": ["-y", "mmk-mcp"],
"env": {
"MMK_API_KEY": "",
"MMK_API_BASE_URL": ""
}
}
}
}
4. Start Server
bash
npm start
Troubleshooting
Common Issues
Issue: Server won't start Solution: Check Node.js version and reinstall dependencies. Issue: Not recognized by Claude Desktop Solution: Verify configuration file path and syntax.Configuration
Configuration
Basic Configuration
Claude Desktop Setup
Edit~/.config/claude-desktop/claude_desktop_config.json (macOS/Linux) or
%APPDATA%\Claude\claude_desktop_config.json (Windows):
json
{
"mcpServers": {
"magic-meal-kits": {
"command": "npx",
"args": ["-y", "mmk-mcp"],
"env": {
"MMK_API_KEY": "your-api-key",
"MMK_API_BASE_URL": "your-api-base-url"
}
}
}
}
Environment Variables
Set the following environment variables as needed:bash
export MMK_API_KEY="your-api-key"
export MMK_API_BASE_URL="your-api-base-url"
Security Settings
Store API keys in environment variables or secure configuration files
Set appropriate file access permissions
Adjust logging levels
Configuration Example
Basic Configuration
json
{
"mcpServers": {
"magic-meal-kits": {
"command": "npx",
"args": ["-y", "mmk-mcp"],
"env": {
"MMK_API_KEY": "your-api-key",
"MMK_API_BASE_URL": "your-api-base-url"
}
}
}
}
Examples
Examples
Basic Usage
Here are basic usage examples for the MCP server:Using with Claude Desktop
1Verify MCP Server Startup
Open Claude Desktop and confirm that the configuration has been loaded correctly.
2Execute Basic Commands
Available tools from this MCP server:
- magic_meal_kits_server_version: Check the Magic Meal Kits server version
Programmatic Usage
javascript
// JavaScript example (Node.js)
const { MCPClient } = require('@modelcontextprotocol/client');
const client = new MCPClient();
await client.connect();
// Execute tool
const result = await client.callTool('magic_meal_kits_server_version', {});
console.log(result);
Use Cases
AI assistants checking the Magic Meal Kits server version based on user requests.
Developers automating version management of the API using the MCP server.
Verifying server version in a testing environment to maintain deployment consistency.
Creating scripts to fetch version information and integrating them into CI/CD pipelines.