MCP HubMCP Hub
Alec2435

amazon-fresh-server

by: Alec2435

An amazon fresh mcp server

62created 27/11/2024
Visit
amazon
fresh

📌Overview

Purpose: The MCP server is designed to implement a simple notes system that showcases the Model Context Protocol (MCP) functionality.

Overview: This TypeScript-based server allows users to manage text notes effectively, providing features for creating and summarizing notes while demonstrating core MCP principles.

Key Features:

  • Resources: Provides access to notes through note:// URIs, with each note consisting of a title, content, and associated metadata. The plain text mime type facilitates simple content access.

  • Tools: The create_note function allows users to create new text notes by providing required title and content parameters, storing the notes in server state for easy retrieval.

  • Prompts: The summarize_notes feature generates a comprehensive summary of all stored notes, embedding their contents as resources and returning a structured format for LLM summarization.


amazon-fresh-server MCP Server

A Model Context Protocol server implemented in TypeScript, featuring a simple notes system that demonstrates core MCP concepts.

Features

Resources

  • Access notes via note:// URIs, each with a title, content, and metadata.
  • Plain text mime type for simple content access.

Tools

  • Create Note:
    • Use create_note to create new text notes with required title and content.
    • Stores notes in server state.

Prompts

  • Summarize Notes:
    • Use summarize_notes to generate a summary of all stored notes, returning a structured prompt for LLM summarization.

Development

Install Dependencies

npm install

Build the Server

npm run build

Development with Auto-rebuild

npm run watch

Installation

To use with Claude Desktop, add the server config to:

  • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "amazon-fresh-server": {
      "command": "/path/to/amazon-fresh-server/build/index.js"
    }
  }
}

Debugging

Debugging MCP servers can be challenging due to stdio communication. We recommend using the MCP Inspector, available as a package script:

npm run inspector

The Inspector will provide a URL for accessing debugging tools in your browser.