Skip to main content

A FastMCP server to search Mercari Japan.

Project description

Demo

Requirements

  • Python 3.11 or higher
  • Dependencies as listed in pyproject.toml, including:
    • mcp
    • mercari
    • pydantic

Pre-setup

  1. uv https://docs.astral.sh/uv/getting-started/installation/

  2. Microsoft C++ Build Tools (For Windows) https://visualstudio.microsoft.com/visual-cpp-build-tools/

Setup

  1. Clone this repository:

    git clone https://github.com/msr2903/mercari-jp-mcp.git
    cd mercari-jp-mcp
    
  2. Create and activate a virtual environment and install dependencies:

    uv venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
    uv pip install -e .
    

Usage

Development Mode

You can test the server with MCP Inspector by running:

uv run server.py

You can also test to input manually the query, exclude keywords, min and max price by running:

uv run check_server.py

This will start the server and allow you to test the available tools.

Integration with Claude for Desktop

To integrate this server with Claude for Desktop:

  1. Install Claude for Desktop to your local machine.

  2. Install VS Code to your local machine. Then run the following command to open the claude_desktop_config.json file:

    • MacOS: code ~/Library/Application\ Support/Claude/claude_desktop_config.json
    • Windows: code $env:AppData\Claude\claude_desktop_config.json
  3. Edit the Claude for Desktop config file, located at:

    • macOS:

      {
        "mcpServers": {
          "mercari": {
            "command": "uv",
            "args": [
              "--directory",
              "/ABSOLUTE/PATH/TO/PARENT/FOLDER/mercari-jp-mcp",
              "run",
              "server.py"
            ]
          }
        }
      }
      
    • Windows:

      {
        "mcpServers": {
          "mercari": {
            "command": "uv",
            "args": [
              "--directory",
              "C:\\ABSOLUTE\\PATH\\TO\\PARENT\\FOLDER\\mercari-jp-mcp",
              "run",
              "server.py"
            ]
          }
        }
      }
      
    • Note: You may need to put the full path to the uv executable in the command field. You can get this by running which uv on MacOS/Linux or where uv on Windows.

  4. Restart Claude for Desktop

Thanks

This work would not have been possible without amazing open source projects, including (but not limited to):

Thank you to the authors of these projects for making them available to the community!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_msr2903_mercari_mcp-0.1.2.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_msr2903_mercari_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: iflow_mcp_msr2903_mercari_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_msr2903_mercari_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1cd7093578e2c4d074e34d2e3c6c2b328396440ad68b4058feff2f27d8366d4f
MD5 e3d4915c8183baf2ddd56344610930e5
BLAKE2b-256 4f5ee29afb2d6996c622eefe094db33d3a4b460bf5e4c010ee27c407b5d64d52

See more details on using hashes here.

File details

Details for the file iflow_mcp_msr2903_mercari_mcp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_msr2903_mercari_mcp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_msr2903_mercari_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f4ec7cd5027a642c249b8ddeffd3016b13eb9508ec7e31f335a1c1e4e006bfaa
MD5 498e9e0a487384c5389eb1e8b8959daa
BLAKE2b-256 4be7465945147ac3c30761f32c7b2a0686292ac660d8807071fd53c08bc8b036

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page