Basic information
About MCP Demo Server
# MCP Demo
MCP Demo is a MCP server in the Other category listed in the AddMCP.net directory, published by tanjibpa. Supported transport: stdio. Runtime: python. Source code is hosted on github.com. Related topics: claude-desktop, mcp, mcp-server, model-context-protocol, server-demo.
Setup
{
"mcpServers": {
"mcp-server-demo-tanjibpa": {
"command": "uv",
"args": [
"venv"
]
}
}
}
{
"mcpServers": {
"mcp-server-demo-tanjibpa": {
"command": "uv",
"args": [
"venv"
]
}
}
}
{
"servers": {
"mcp-server-demo-tanjibpa": {
"command": "uv",
"args": [
"venv"
]
}
}
}
MCP Demo — by tanjibpa config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-server-demo-tanjibpa": {
"command": "uv",
"args": [
"venv"
]
}
}
}
MCP Demo — by tanjibpa tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MCP Demo?
MCP Demo is a demo implementation of a Model Context Protocol (MCP) server that manages organizations and devices, calculates distances between devices and their associated organizations using the Haversine formula, and provides tools for interacting with the data via a PostgreSQL database.
How to use MCP Demo?
Set up a PostgreSQL database, clone the repository, configure environment variables in a .env file, and run uv run main.py. Optionally, configure Claude Desktop by editing its MCP server config to point to the project directory, then use tools like get_organizations, get_devices, get_devices_by_organization, and list_devices_with_distance.
Key features of MCP Demo
- Connects to a PostgreSQL database for managing organizations and devices.
- Calculates distances using the Haversine formula.
- Provides MCP tools to fetch organizations, devices, and distances.
- Includes a SQL script for database schema and seed data.
- Configurable for use with Claude Desktop.
Use cases of MCP Demo
- Demonstrating how an MCP server can interact with a relational database.
- Exploring distance calculations between devices and their organization locations.
- Testing MCP tool integration with a desktop client like Claude.
Frequently asked questions
1 What are the runtime requirements?
Python 3.12.5 and a PostgreSQL database are required.
2 How do I set up the database?
Run the provided tables.sql script against your PostgreSQL instance after configuring the .env file.
3 How is the distance calculation performed?
It uses the Haversine formula to calculate distances between devices and their associated organizations.
4 Can I use MCP Demo with Claude Desktop?
Yes, by adding an MCP server entry in Claude Desktop's configuration file pointing to the project directory and setting the required environment variables.
5 What dependencies are needed?
The server depends on httpx, mcp[cli], and psycopg2.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In