Goofish Cli logo

Goofish Cli

Exposes Goofish/Xianyu operations through a Python CLI and MCP tools for listings, search, media, authentication, and messaging.

Install Goofish Cli

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "goofish-cli": {
      "command": "uvx",
      "args": [
        "goofish-cli"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 17 tools correctly (12d ago).

Overview

goofish-cli MCP server connects AI agents and terminal users to Goofish (Xianyu) through a shared command registry. It supports item publishing and removal, item lookup, marketplace search, image uploads, category recommendations, authentication checks, default-location lookup, and buyer messaging. The MCP entry point runs through the installed CLI, with JSON, YAML, table, Markdown, and CSV output formats available for command results. Reach for it when an agent needs to inspect or manage Goofish listings and conversations, including real-time message events.

Use cases

  • Publish second-hand items with recommended categories and uploaded images
  • Search Goofish listings and inspect item details
  • Monitor buyer conversations and retrieve message history
  • Send text or image replies to buyers
  • Diagnose shop visibility using read-only marketplace data

Key features

  • MCP tools backed by a shared CLI command registry
  • Goofish item publishing, lookup, search, and removal
  • Image uploads and AI category recommendations
  • Conversation history, message sending, and WebSocket event watching
  • JSON, YAML, table, Markdown, and CSV output
  • Docker-backed sandbox with persistent login state

Tools17

What Goofish Cli lets your agent do. Expand a tool for its parameters.

Verified live~1.2k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

7/7 checks healthy over the last 13d

What it can do

From the 17 tools this server returned when we ran it.

Can delete or modify data · 1Makes network requests · 2Read-only tools · 16
Network at startup2 connections
Files written at startup13

Observed 2026-10-27 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · goofish-cli (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars441Stargazers on the source repository.
Last commit14d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed17Callable tools this server registers over MCP.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Goofish Cli works

What goofish-cli does

goofish-cli provides structured access to core Goofish (Xianyu) operations through both a terminal interface and MCP. Its command registry covers authentication, item details, item publishing and removal, marketplace search, browser-style item viewing, media uploads, category recommendations, default publishing locations, and buyer conversations.

The same definitions are used by the CLI, MCP tools, and installable Claude Skills. The package includes five skills for general Goofish guidance, item publishing, buyer replies, risk checks, and shop diagnosis. The shop-diagnosis skill is read-only, while item publishing and messaging can perform write operations.

How it works

Install the Python package, import a Goofish login state from a browser-exported cookie file or cookie string, and verify it with auth status. MCP clients can launch the command with uvx goofish-cli, allowing agents to use the registered commands as tools.

Command output can be selected with --format json, yaml, table, md, or csv. JSON is suitable for agent workflows, while table output is intended for interactive terminal use. Messaging includes both short-lived conversation synchronization and a persistent watch mode. The watch command uses a WebSocket connection with automatic reconnection and emits JSONL events for received messages, read receipts, and lightweight new-message notifications.

Setup and configuration

Install with either pip install goofish-cli or uv pip install goofish-cli. Import credentials with a command such as goofish auth login ~/Downloads/goofish-cookies.json, then run goofish auth status to check the session.

A sandbox mode is available for environments with Docker Desktop or Docker Engine. It runs Chromium in a container-backed virtual desktop, keeps login data in a separate volume, and exposes an observation page for manual interaction. Configure an MCP client to launch goofish sandbox mcp when the agent should use the sandbox rather than the host mode. The client must be able to find both goofish and docker; the first sandbox start downloads and builds an image.

Claude Skills can be copied to ~/.claude/skills/ with goofish skills install, or installed into another directory with --dest. The command also supports listing skills without copying them.

Tools and capabilities

  • Check login validity and reset a manually triggered risk guard.
  • Retrieve item details or browser-style item views, search listings, and recommend categories.
  • Publish or remove items, upload images, and obtain the default publishing location.
  • List conversations, retrieve message history, send text or image messages, and watch for live events.
  • Apply account and business rate limits, including separate limits for operational and media requests.
  • Share one command registry across CLI, MCP, and Claude Skill entry points.

Limitations and notes

Goofish access requires an authenticated account. Item publishing, deletion, media uploads, and message sending are write operations, so agents should obtain appropriate confirmation before invoking them. The built-in safeguards apply request throttling and can automatically trip a risk circuit breaker; auth reset-guard is available for manual recovery.

Message discovery and history are subject to the behavior of the underlying HTTP and WebSocket paths. Conversation summaries can be incomplete, and a lightweight new_msg event may require a separate history request to retrieve message text.

Sandbox use requires Docker and manual interaction when the platform requests verification. The sandbox does not automatically open a host browser. When Goofish requires an interactive verification step, use the sandbox browse command and complete it in the observation page.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Goofish Cli

goofish-cli is an MCP server that connects AI agents to Goofish (Xianyu), China’s second-hand marketplace, through structured tools for authentication, item lookup and publishing, search, category recommendations, media uploads, location lookup, and messaging. It runs from the Python CLI and exposes the same command registry over MCP.

Install it with `pip install goofish-cli` or `uv pip install goofish-cli`. MCP clients can launch it with `uvx goofish-cli`; authenticate separately with `goofish auth login` using a browser-exported cookie file or cookie string.

Yes, goofish-cli is intended to work with Cursor through its MCP entry point, and its Claude Skills can also be installed for Cursor agents. Use the normal local MCP configuration with the installed CLI, or configure `goofish sandbox mcp` when using Docker sandbox mode.

Run `goofish message watch` to maintain a WebSocket connection and receive JSONL events. The stream distinguishes received messages, read receipts, and lightweight `new_msg` notifications; the latter provides a pointer, so retrieve the full content with `message history`.

Docker is required only for sandbox mode, which uses Docker Desktop or Docker Engine to run Chromium in a virtual desktop. Normal local operation uses the installed CLI and imported cookies without the sandbox.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGoofish Cli AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/goofish-cli?style=directory)](https://allmcps.com/mcp/goofish-cli)
HTML Embed
<a href="https://allmcps.com/mcp/goofish-cli"><img src="https://allmcps.com/api/badge/goofish-cli?style=directory" alt="Goofish Cli on AllMCPs" /></a>