AI数据访问服务

为Claude AI提供实时电子商务和用户数据访问的多服务模型上下文协议(MCP)服务器。

  • by YehuditSabag
  • JavaScript
  • 本地部署
  • 更新于
在 GitHub 查看 YehuditSabag/MCP-SERVER-Users

使用说明

🚀 MCP Server Collection for Claude AI

Multi-service Model Context Protocol (MCP) servers that extend Claude AI with real-time e-commerce and user data access.

🎯 What is this?

Two MCP servers that enable Claude AI to fetch live data from external APIs:

  • Fake Store Service (server.js) - E-commerce product data
  • Typicode Service (user.js) - User management data

Both servers run simultaneously in Claude Desktop, allowing natural language queries like:

  • "Show me products under $50"
  • "How many users are from California?"
  • "Create a report of user demographics and popular products"

⚡ Quick Start

# Clone and install
git clone https://github.com/YehuditSabag/MCP-SERVER-Users.git
cd MCP-SERVER-Users
npm install

# Test servers
node server.js  # Products
node user.js    # Users

🔧 Claude Desktop Setup

Edit your config file:

Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "FakeStoreService": {
      "command": "node",
      "args": ["C:/absolute/path/to/MCP-SERVER-Users/server.js"]
    },
    "TypicodeService": {
      "command": "node",
      "args": ["C:/absolute/path/to/MCP-SERVER-Users/user.js"]
    }
  }
}

Important: Use absolute paths and restart Claude Desktop after configuration.

📦 Available Tools

Tool Description API Source
getProducts Fetch product catalog with prices, ratings, categories Fake Store API
getUserData Retrieve user info with addresses, companies, contacts JSONPlaceholder

💡 Usage Examples

Ask Claude:

  • "What are the most expensive products?"
  • "Show users grouped by city"
  • "Which product categories match our user demographics?"

Claude will automatically use these tools to fetch and analyze the data!

🏗️ Project Structure

MCP-SERVER-Users/
├── server.js          # Products service
├── user.js            # Users service
├── package.json
└── README.md

🧪 Tech Stack

  • Node.js - Runtime
  • MCP SDK - Protocol implementation
  • Public APIs - Fake Store & JSONPlaceholder

🤝 Contributing

Fork, create a feature branch, and submit a PR. Ideas welcome:

  • New API integrations
  • Error handling improvements
  • Caching layer
  • TypeScript migration

📝 License

MIT License - See LICENSE file.

🔗 Resources


Built for AI-powered data integration • Demonstrating Model Context Protocol with Claude AI