Skip to content
MCP server

Fairshop Return Reasons

Reads your exported store files to flag return reasons by SKU and by customer

Runs locally

Fairshop Return Reasons is an open-source MCP server for e-commerce. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted
Runs
Locally
Version
0.1.0
Listing updated

Similar MCP servers

Install

You install MCP servers on a computer. Send yourself the link.

Add with the CLI

Run in a terminal

claude mcp add fairshop-return-reasons -- npx -y fairshop-return-reasons

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "fairshop-return-reasons": {
      "command": "npx",
      "args": [
        "-y",
        "fairshop-return-reasons"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "fairshop-return-reasons": {
      "command": "npx",
      "args": [
        "-y",
        "fairshop-return-reasons"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "fairshop-return-reasons": {
      "command": "npx",
      "args": [
        "-y",
        "fairshop-return-reasons"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "fairshop-return-reasons": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "fairshop-return-reasons"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add fairshop-return-reasons -- npx -y fairshop-return-reasons

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.fairshop-return-reasons]
command = "npx"
args = ["-y", "fairshop-return-reasons"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "fairshop-return-reasons": {
      "command": "npx",
      "args": [
        "-y",
        "fairshop-return-reasons"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "fairshop-return-reasons": {
          "command": "npx",
          "args": [
            "-y",
            "fairshop-return-reasons"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user fairshop-return-reasons npx -- -y fairshop-return-reasons

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "fairshop-return-reasons": {
          "command": "npx",
          "args": [
            "-y",
            "fairshop-return-reasons"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "fairshop-return-reasons": {
          "command": "npx",
          "args": [
            "-y",
            "fairshop-return-reasons"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "fairshop-return-reasons": {
          "command": "npx",
          "args": [
            "-y",
            "fairshop-return-reasons"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "fairshop-return-reasons": {
          "command": "npx",
          "args": [
            "-y",
            "fairshop-return-reasons"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "fairshop-return-reasons": {
          "command": "npx",
          "args": [
            "-y",
            "fairshop-return-reasons"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "fairshop-return-reasons": {
          "command": "npx",
          "args": [
            "-y",
            "fairshop-return-reasons"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "fairshop-return-reasons": {
          "command": "npx",
          "args": [
            "-y",
            "fairshop-return-reasons"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Fairshop Return Reasons

This MCP server reads return reasons from a store export and reports them by product SKU and by customer. It is one of several small checks from the Fairshop back-office suite, published as a standalone package on npm.

It works on files you already have rather than connecting to a live store, so no store login or customer data needs to be shared with the server. Results are returned to an MCP-compatible AI client over stdio, which lets an assistant answer questions about which products come back most often.

The package suits e-commerce operators and bookkeepers who want to spot return patterns, and developers who want an MCP tool for return analysis in their own assistant setup.

What it does

Return reasons by SKU
Groups returned items by stock keeping unit so high-return products stand out.
Return reasons by customer
Shows which customers return most of what they buy, with names masked in the output.
Runs over stdio
Installs as a local stdio MCP server that an AI client can launch directly.
Reads exported files
Works from files you export rather than logging in to your store.

Good for

  • Find which SKUs are returned at the highest rate
  • Spot customers who cancel or return most of their orders
  • Give an AI assistant read access to return reason data for analysis

Pricing

Open source

Free package; the wider Fairshop suite is paid.

Prices change. Check fair-agents.com before you buy.

Fairshop Return Reasons FAQ

Does Fairshop Return Reasons connect to my store directly?

No. It reads the files you export on your own computer and does not log in to your store.

How is Fairshop Return Reasons installed?

It is published on npm as fairshop-return-reasons and runs as a local stdio server.

Is Fairshop Return Reasons free?

Yes. Fairshop Return Reasons is open source, so you can use and self-host it for free.

How do I add Fairshop Return Reasons to Claude Code?

Run this command in your terminal: claude mcp add fairshop-return-reasons -- npx -y fairshop-return-reasons

What are the best alternatives to Fairshop Return Reasons?

The closest alternatives to Fairshop Return Reasons are Fairshop Stockouts, Fairshop Store Shrink, Fairshop SKU Margins, Fairshop Ad Spend and Returnloop.

Where this comes from

  • Description: written from the project's website and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers