Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Products Server

БесплатноНе проверен

Enables product management (add, fetch) through natural language using Claude Desktop and GitHub Copilot.

GitHubEmbed

Описание

Enables product management (add, fetch) through natural language using Claude Desktop and GitHub Copilot.

README

A hands-on Python project demonstrating Model Context Protocol (MCP) by building a product management server that integrates with Claude Desktop and GitHub Copilot.

🗂️ Project Structure

create_new_mcp/
│
├── mcp_server.py        # MCP Server with tools, resource, and prompt template
├── add_product.py       # DB logic to INSERT a product
├── fetch_products.py    # DB logic to SELECT all products
├── db_connect.py        # Database connection helper
├── .env                 # API keys and DB credentials (not committed)
├── .gitignore
└── README.md

⚙️ MCP Server — mcp_server.py

🔌 Configuration

Claude Desktop

Update claude_desktop_config.json:

{
  "mcpServers": {
    "products": {
      "command": "uv.exe",
      "args": [
        "--directory", "C:\\path\\to\\create_new_mcp",
        "run", "mcp_server.py"
      ]
    }
  }
}

GitHub Copilot

Update mcp.json with the same server details.

🚀 Getting Started

Prerequisites

  • Python 3.10+
  • uv package manager
  • MySQL database
  • Claude Desktop or GitHub Copilot

📚 Key Learnings

  • ✅ MCP Tools are invoked directly by the LLM
  • ✅ MCP Resources are fetched manually via host UI and injected into context
  • ✅ Prompt Templates enable consistent prompt generation via / command
  • ⚠️ MCP Sampling (server → LLM callback) is not yet supported by Claude Desktop or GitHub Copilot in practice
  • 💡 Workaround for sampling: call Anthropic API directly from the MCP server

from github.com/lokesh1382/mcp-products-demo

Установка Products Server

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/lokesh1382/mcp-products-demo

FAQ

Products Server MCP бесплатный?

Да, Products Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Products Server?

Нет, Products Server работает без API-ключей и переменных окружения.

Products Server — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Products Server в Claude Desktop, Claude Code или Cursor?

Открой Products Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Products Server with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development