npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@habibsalimov/mcp-server-fakestore

v1.0.1

Published

A beginner-friendly MCP server for Fake Store API - Learn to build MCP servers with real e-commerce data

Readme

🛍️ MCP Server for Fake Store API

npm version License: MIT TypeScript

A beginner-friendly Model Context Protocol (MCP) server that provides seamless access to the Fake Store API. Perfect for learning MCP development and building AI applications with e-commerce data.

✨ Features

  • 🚀 Easy to Use: Simple setup and configuration
  • 🔧 10 MCP Tools: Complete access to products, carts, and users
  • 📦 TypeScript: Full type safety and IntelliSense support
  • Response Caching: Built-in caching for better performance
  • 📝 Comprehensive Logging: Winston-powered logging system
  • Well Tested: Jest test suite with high coverage
  • 📖 Well Documented: Extensive documentation and examples

📋 Prerequisites

  • Node.js >= 18.0.0
  • npm >= 9.0.0

🚀 Quick Start

Installation

npm install -g @habibsalimov/mcp-server-fakestore

Usage with Claude Desktop

Add the server configuration to your Claude Desktop config file:

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

{
  "mcpServers": {
    "fakestore": {
      "command": "npx",
      "args": ["-y", "@habibsalimov/mcp-server-fakestore"]
    }
  }
}

Restart Claude Desktop, and you're ready to go!

🛠️ Available Tools

Products (4 tools)

| Tool Name | Description | Parameters | |-----------|-------------|------------| | fakestore_get_products | Get all products | limit?, sort? | | fakestore_get_product | Get single product by ID | id | | fakestore_get_categories | Get all categories | - | | fakestore_get_products_by_category | Get products by category | category |

Carts (3 tools)

| Tool Name | Description | Parameters | |-----------|-------------|------------| | fakestore_get_carts | Get all shopping carts | limit?, sort? | | fakestore_get_cart | Get single cart by ID | id | | fakestore_get_user_carts | Get carts for a user | userId |

Users (2 tools)

| Tool Name | Description | Parameters | |-----------|-------------|------------| | fakestore_get_users | Get all users | limit? | | fakestore_get_user | Get single user by ID | id |

💡 Example Usage with Claude

You: "Show me all electronics products"
Claude: *Uses fakestore_get_products_by_category with category="electronics"*

You: "What's in user 1's shopping cart?"
Claude: *Uses fakestore_get_user_carts with userId=1*

You: "Get details for product ID 5"
Claude: *Uses fakestore_get_product with id=5*

🏗️ Development

Clone and Install

git clone https://github.com/habibsalimov/mcp-server-fakestore.git
cd mcp-server-fakestore
npm install

Build

npm run build

Run Tests

npm test
npm run test:coverage

Lint and Format

npm run lint
npm run format

Development Mode

npm run dev

📁 Project Structure

mcp-server-fakestore/
├── src/
│   ├── api/              # API client and endpoints
│   ├── tools/            # MCP tools implementation
│   ├── types/            # TypeScript type definitions
│   ├── utils/            # Utility functions
│   ├── server.ts         # MCP server setup
│   └── index.ts          # Entry point
├── tests/                # Jest tests
├── docs/                 # Documentation
├── examples/             # Usage examples
└── dist/                 # Compiled output

📚 Documentation

🤝 Contributing

Contributions are welcome! Please read our Contributing Guide for details.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

📧 Support


Made with ❤️ by Habib Salimov