FdcPythonMcpServer

yerald231ger/FdcPythonMcpServer

3.2

If you are the rightful owner of FdcPythonMcpServer and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Python implementation of a server for the Model Context Protocol (MCP) focusing on Forecourt Device Controller (FDC) functionality for tank delivery data.

Tools
  1. fdc_tool

    Implementation of the FDC service with tank delivery data functionality

  2. hello_tool

    Simple example tool for testing and demonstration purposes

MCP Server FDC

A Python implementation of a server for the Model Context Protocol (MCP) focusing on Forecourt Device Controller (FDC) functionality for tank delivery data.

Overview

This project provides a Model Context Protocol implementation for accessing and manipulating tank delivery data from Forecourt Device Controllers. It leverages the MCP Python SDK to expose tools that can be used by AI assistants to interact with fuel tank monitoring systems.

What is Model Context Protocol (MCP)?

The Model Context Protocol is an open standard that enables developers to build secure, two-way connections between their data sources and AI-powered tools. Created by Anthropic, MCP standardizes how AI systems interact with external tools and data sources, similar to how the Language Server Protocol standardized programming language support across development tools.

Key MCP concepts:

  • MCP Servers: Expose data and functionality (like our FDC tank data) through a standardized interface
  • MCP Clients: AI applications that connect to MCP servers to utilize those tools
  • Tools: Functions that can be invoked by AI systems (like our tank delivery data retrieval functions)
  • Resources: Static or dynamic data that can be accessed by AI systems
  • Prompts: Pre-defined text that can guide AI interactions

MCP enables AI systems to:

  • Access real-time data directly from source systems
  • Perform actions based on that data
  • Maintain context across different tools and datasets

Features

  • FDC Tools:

    • Retrieve tank delivery data for all tanks
    • Retrieve tank delivery data for specific tanks by device ID
  • Asynchronous Implementation: Service calls are implemented with async/await pattern for better performance

  • Type Safety: Pydantic models ensure proper data validation and serialization

  • MCP Standard Compliance: Built with the official MCP Python SDK

  • Retrieve tank delivery data for all tanks

  • Retrieve tank delivery data for specific tanks by device ID

  • Pydantic models for proper type validation and serialization

  • Asynchronous service implementation for better performance

Project Structure

The project is organized as follows:

  • main.py: Entry point of the application, contains test code to verify FDC service functionality
  • tools/: Directory containing MCP tool implementations
    • fdc_tool.py: Implementation of the FDC service with tank delivery data functionality
    • hello_tool.py: Simple example tool for testing and demonstration purposes
  • pyproject.toml: Project dependencies and metadata
  • .git/: Git repository metadata
  • .idea/: JetBrains IDE configuration files
  • __pycache__/: Python bytecode cache directory

The application follows a modular design pattern where each tool is implemented as a separate module within the tools directory. This allows for easy extension with additional MCP-compatible tools in the future.

JSON Claude MCP File locally

{
  "mcpServers": {
    "Demo": {
      "command": "/Users/[User]/.local/bin/uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "/Users/[User]/Documents/Areas/Courses-Mcp/python/src/tools/hello_tool.py"
      ]
    },
    "FdcToolPython": {
      "command": "/Users/[user]/.local/bin/uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "/Users/[user]/Documents/Areas/Courses-Mcp/python/src/tools/fdc_tool.py"
      ]
    }
  }
}

Resources