A command-line interface for accessing topology data
Project description
Topology MCP Server
A Model Context Protocol (MCP) server for accessing topology data from a topology service.
Installation
Via uvx (recommended)
uvx install topology-mcp
Via pip
pip install topology-mcp
Usage
Running the MCP Server
# Start the MCP server with stdio transport (for MCP clients)
topology-mcp --transport stdio
# Start the MCP server with HTTP transport
topology-mcp --transport streamable-http --port 8001
# Start the MCP server with SSE transport
topology-mcp --transport sse --port 8002
Advanced Usage
# Use a different topology service URL
export TOPOLOGY_URL=http://my-topology-service:8080
topology-mcp --transport stdio
# Use a different port
topology-mcp --transport streamable-http --port 9000
# Use environment variable for topology service
export TOPOLOGY_URL=http://my-service:9000
topology-mcp --transport sse
Environment Variables
TOPOLOGY_URL: Base URL for the topology service (defaults tohttp://localhost:8000)PORT: Server port (defaults to 8000)HOST: Server host (defaults to 0.0.0.0)TRANSPORT: Transport method (sse, stdio, streamable-http)
Examples
# Start MCP server for use with Claude Desktop
topology-mcp --transport stdio
# Start MCP server on custom port
topology-mcp --transport streamable-http --port 9000
# Connect to a remote topology service
export TOPOLOGY_URL=https://topology.example.com
topology-mcp --transport sse
Development
Setup
# Clone the repository
git clone https://github.com/yourusername/topology-mcp.git
cd topology-mcp
# Install in development mode with uv
uv sync --dev
# Or with pip
pip install -e ".[dev]"
Running Tests
pytest
Code Formatting
black src/
License
MIT License - see LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
topology_mcp-0.1.5.tar.gz
(6.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file topology_mcp-0.1.5.tar.gz.
File metadata
- Download URL: topology_mcp-0.1.5.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c57af8484f7f7ff2132649c0c7b82191c91bd7b83472b546c0527170860a1bd
|
|
| MD5 |
7e9e509ca8e4499a650a8cee3c300a65
|
|
| BLAKE2b-256 |
3e77d496a7eb07412a5dff084b2bde167aabae300df66150d9492bf16434f0bd
|
File details
Details for the file topology_mcp-0.1.5-py3-none-any.whl.
File metadata
- Download URL: topology_mcp-0.1.5-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6319295a72c232150513241ae879c803344c12405dfd5516234389a998133b17
|
|
| MD5 |
52864f75dc575e84207db1faac50945d
|
|
| BLAKE2b-256 |
f9f9395af371d17e07d34d81ee2738552f51e660ded972c16ab39ed9e4c88a7d
|