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 that provides a simple notes system. It demonstrates core MCP concepts by offering:

  • Resources representing text notes with URIs and metadata
  • Tools for creating new notes
  • Prompts for generating summaries of notes

Features

Resources

  • List and access notes via note:// URIs
  • Each note contains a title, content, and metadata
  • Uses plain text mime type for simple content access

Tools

  • create_note: Create new text notes
    • Requires title and content parameters
    • Stores notes in server state

Prompts

  • summarize_notes: Generate a summary of all stored notes
    • Includes all note contents as embedded resources
    • Returns a structured prompt for LLM summarization

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Installation

To use with Claude Desktop, add the server config:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "amazon-fresh-server": {
      "command": "/path/to/amazon-fresh-server/build/index.js"
    }
  }
}

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. Use the MCP Inspector, available as a package script:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.