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

File metadata

  • Download URL: iflow_mcp_msr2903_mercari_mcp-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 6607b829f4db122b41f62fc5f8667f2d1c52207994743b2f42cc77c224191f20
MD5 11e0aa4a93f6d39e79908866bb7398fb
BLAKE2b-256 acec736f9d54895e9a4245ec4c88f03bf54c74f510ab1084b52f9f48e4b44872

See more details on using hashes here.

File details

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

File metadata

  • Download URL: iflow_mcp_msr2903_mercari_mcp-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cec1598d94e55754c89fc8068b7681066dd54f07ba06998d1e21c3f19d865cad
MD5 333b307dcf2d796aa120f09f9445da35
BLAKE2b-256 71bcd5b315f77ecf01eda8d4e44650ddbea1bae8f8ab72864ad2b4fbb9ade440

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