MCP Demo
@tanjibpa
MCP Demo について
概要はまだありません
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"mcp-server-demo-tanjibpa": {
"command": "uv",
"args": [
"venv"
]
}
}
}ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
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.
FAQ from MCP Demo
What are the runtime requirements?
Python 3.12.5 and a PostgreSQL database are required.
How do I set up the database?
Run the provided tables.sql script against your PostgreSQL instance after configuring the .env file.
How is the distance calculation performed?
It uses the Haversine formula to calculate distances between devices and their associated organizations.
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.
What dependencies are needed?
The server depends on httpx, mcp[cli], and psycopg2.
「その他」の他のコンテンツ
MaxKB
1Panel-dev🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。
MCP Toolbox for Databases
googleapisMCP Toolbox for Databases is an open source MCP server for databases.
Inbox Zero AI
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.

Sequential Thinking
modelcontextprotocolModel Context Protocol Servers
ICSS
chokcoco不止于 CSS
コメント