Skip to main content

MCP server for marketfiyati.org.tr/

Project description

Market Fiyatı MCP Server

PyPI version MCP Specification

An MCP server for marketfiyati.org.tr, a price comparison website for groceries in Turkey.

This server exposes the search functionality of the website as tools for MCP-compatible clients.

Features

  • Search Products: Find products using keywords.
  • Search by ID: Look up products by their unique ID or barcode.
  • Find Similar Products: Discover products similar to a given item.

Prerequisites

  • Python 3.12+
  • uv (recommended for project and virtual environment management)

Installation

  1. Clone the repository:

    git clone https://github.com/mtcnbzks/market-fiyati-mcp-server.git
    cd market-fiyati-mcp-server
    
  2. Create a virtual environment and install dependencies:

    uv venv
    uv pip install -e .
    

Usage

You can run this server and connect to it from any MCP-compatible client.

Running the Server

To start the server, run the following command in your terminal:

uv run python -m market_fiyati_mcp_server.server

The server will start and listen for connections from MCP clients.

Connecting from a Client

You can use the MCP development tools to inspect and interact with the server.

  • Install in an MCP Client (e.g., Claude Desktop): To make the server available in a client like the Claude Desktop App, you can install it using:

    uv run mcp install src/market_fiyati_mcp_server/server.py
    
  • Manual Configuration (e.g., VS Code): To add the server to a client that uses a mcp.json configuration file (like VS Code), add the following to the servers object in your mcp.json.

    Make sure to replace <path-to-market-fiyati-mcp-server> with the absolute path to the cloned repository directory.

    "market-fiyati": {
      "command": "uv",
      "args": [
        "--directory",
        "<path-to-market-fiyati-mcp-server>",
        "run",
        "src/market_fiyati_mcp_server/server.py"
      ]
    }
    

Tools

This server provides the following tools:

search_product

Search for products matching given keywords.

  • Parameters:
    • keywords (str): The search terms.
    • latitude (float, optional): Latitude for location-based search.
    • longitude (float, optional): Longitude for location-based search.
    • distance (int, optional): Radius in km for location-based search.
  • Returns: A human-readable summary and the full structured API response.

search_product_by_identity

Retrieve product information by a unique identity (e.g., barcode or internal ID).

  • Parameters:
    • identity (str): The product's unique ID or barcode.
    • identityType (str, optional): The type of identity (id or barcode). Defaults to id.
    • keywords (str, optional): Optional keywords to refine the search.
    • latitude (float, optional): Latitude for location-based search.
    • longitude (float, optional): Longitude for location-based search.
    • distance (int, optional): Radius in km for location-based search.
  • Returns: A summary of the found product and the full structured API response.

search_similar_products

Find products similar to a reference item ID.

  • Parameters:
    • id (str): The ID of the reference product.
    • keywords (str): Keywords to find similar products.
    • latitude (float, optional): Latitude for location-based search.
    • longitude (float, optional): Longitude for location-based search.
    • distance (int, optional): Radius in km for location-based search.
  • Returns: A summary of the most similar product and the full structured API response.

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

market_fiyati_mcp_server-0.2.3.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

market_fiyati_mcp_server-0.2.3-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file market_fiyati_mcp_server-0.2.3.tar.gz.

File metadata

File hashes

Hashes for market_fiyati_mcp_server-0.2.3.tar.gz
Algorithm Hash digest
SHA256 83edca9656f6ca37a740e56709d99bf1223678072a6799fff168051929d6508c
MD5 3689e421320bc63410df9dc40edd22e6
BLAKE2b-256 1740a5487982535d76efa3f8a09d2bd3cb532da6a11479a8d66a30ae4459ecde

See more details on using hashes here.

File details

Details for the file market_fiyati_mcp_server-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for market_fiyati_mcp_server-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 01b43f3a951b79664f25a42acb1a1a3d4bbfdd70499d0ffb52722458a9fb657d
MD5 1f8a00a6c1a26600c74ab975b44067b2
BLAKE2b-256 d4754e69dc861c57fd18258fe94cf3615ed3c15454430b1d47a7da287b8ec91d

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