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.9.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.9.tar.gz.
File metadata
- Download URL: topology_mcp-0.1.9.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 |
c8025a30ed9d944183bb34b87c7ae9282986552c1c292e9d3f94e5fe5c49abc5
|
|
| MD5 |
bc11692f74711662889f6512ce64e632
|
|
| BLAKE2b-256 |
26a90f48a3178efe0737a5fb0a82bc6e7d4c11fbac8d725c40688bb004e2b294
|
File details
Details for the file topology_mcp-0.1.9-py3-none-any.whl.
File metadata
- Download URL: topology_mcp-0.1.9-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 |
695071e28fb63cc0d1959f3bad8dd376258c92ddde92acccf11582036a4cd934
|
|
| MD5 |
8fff49252a620868c74bfc3a1b5d1373
|
|
| BLAKE2b-256 |
dc44b9a0a6fc6ed5b4ac79d0513203c6b8bfc752630e45ffffd9fa325dcc43ac
|