OPET Fuel Prices MCP Server

OPET Fuel Prices MCP Server

Provides access to OPET fuel station prices across Turkish provinces. Enables querying fuel prices by province, listing available provinces, and checking last update timestamps.

Category
Visit Server

README

OPET Fuel Prices MCP Server

A Model Context Protocol (MCP) server that provides access to OPET fuel prices data through Claude AI.

Demo

Example

Features

  • Get all available provinces
  • Fetch fuel prices for specific provinces
  • Get last update timestamp
  • Error handling with detailed messages

Prerequisites

Before using this MCP server, you need to set up the OPET API server first.

1. Install OPET Package

Install the OPET package from https://github.com/sinanerdinc/opet:

pip install opet

2. Start OPET API Server

Start the API server using one of the following methods:

Option A: Using CLI

opet-cli --api

Option B: Using Docker

docker run -p 8000:8000 sinanerdinc/opet api

Option C: Using Docker with custom port

docker run -p 5050:8000 sinanerdinc/opet api

The API server will be available at http://localhost:8000 (or your custom port).

Installation

Prerequisites

  • Python 3.12 or higher
  • uv package manager (recommended) or pip
  • OPET package installed and API server running

Setup

  1. Clone the repository:
git clone <repository-url>
cd opet-mcp
  1. Using uv
# Install uv if you don't have it
curl -LsSf https://astral.sh/uv/install.sh | sh

# Create virtual environment and install dependencies
uv venv -p 3.12
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
uv sync

Configuration

Set the OPET API URL using environment variables. The URL should point to your running OPET API server:

# If using default port (8000)
export OPET_API_URL=http://localhost:8000

# If using custom port (e.g., 5050)
export OPET_API_URL=http://localhost:5050

Usage

Running the Server

Start the MCP server:

# With uv
uv run fastmcp run server.py

# With pip
fastmcp run server.py

Example Configuration

Option 1: Install the server to Claude with a custom name and API URL:

{
  "mcpServers": {
    "Opet Server": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "fastmcp",
        "fastmcp",
        "run",
        "/your_absolute_path/opet-mcp/server.py"
      ],
      "env": {
        "OPET_API_URL": "http://localhost:8000"
      }
    }
  }
}

Option 2: Installation Command

fastmcp install server.py --name "OPET Fuel Prices" \
  --env-var OPET_API_URL=http://localhost:8000

Available Tools

get_all_provinces()

Retrieves a list of all provinces where fuel prices are available.

get_fuel_prices_by_province(province_id)

Fetches current fuel prices for a specific province using its ID.

Parameters:

  • province_id (str): The unique identifier of the province

get_last_update_time()

Gets the timestamp of when the fuel prices were last updated in the system.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured