mcp-server-demo

mcp-server-demo

3.2

If you are the rightful owner of mcp-server-demo 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.

This repository contains a demo implementation of a Model Context Protocol (MCP) server.

The MCP Demo server is designed to manage organizations and devices, calculate distances between devices and their associated organizations, and provide a set of tools for interacting with the data. It integrates with a PostgreSQL database to store and manage data related to organizations and devices. The server uses the Haversine formula to calculate distances, which is particularly useful for applications that require geographical data processing. The server also provides a set of tools that allow users to fetch organizations, devices, and calculate distances, making it a versatile solution for managing and analyzing device data in relation to their organizational context.

Features

  • Database Integration: Connects to a PostgreSQL database to manage organizations and devices.
  • Distance Calculation: Uses the Haversine formula to calculate distances between devices and their associated organizations.
  • MCP Tools: Provides tools to fetch organizations, devices, and calculate distances.

Tools

  1. get_organizations

    Fetch all organizations from the database.

  2. get_devices

    Fetch all devices from the database.

  3. get_devices_by_organization

    Fetch devices for a specific organization.

  4. list_devices_with_distance

    List devices and their distances from their associated organizations.