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.0.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.0.tar.gz.

File metadata

  • Download URL: iflow_mcp_msr2903_mercari_mcp-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 9ab0eec1c51785956c5a4306819c443797f8bf17fbece98a9a6659fe73f53389
MD5 1c5529420130d2590da6d58c1f74b886
BLAKE2b-256 2199b91a60d4d380c8d0eba8e728f52d369e9752693b1eccb9d00c825bbea4a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: iflow_mcp_msr2903_mercari_mcp-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96210abb1937f218496a98d10df6155f66299635d052a3c885527f92bda6e79e
MD5 eaff6b755239ab66b493077790926ac5
BLAKE2b-256 9a53d137e08ae6fdfd6d867d8145f1919b47e9dea0c867b1cc369b627d056ef2

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