A Model Context Protocol (MCP) server for topology data
Project description
Topology MCP Server
A Model Context Protocol (MCP) server for accessing topology data from a topology service.
Installation
Via pipx (recommended)
pipx install topology-mcp
Via pip
pip install topology-mcp
Usage
Running the MCP Server
# Run with default settings (port 8000, SSE transport)
topology-mcp
# Run on a specific port
topology-mcp --port 9000
# Run with different transport
topology-mcp --transport stdio
# Run with custom host
topology-mcp --host 127.0.0.1 --port 8000
Environment Variables
TOPOLOGY_URL: Base URL for the topology service (defaults tohttp://localhost:{port})PORT: Server port (defaults to 8000)HOST: Server host (defaults to 0.0.0.0)TRANSPORT: Transport method - sse, stdio, or streamable-http (defaults to sse)
Available Tools
The MCP server provides the following tools:
get_topology_edges: Get topology edges from the topology serviceget_topology_graph: Get topology graph from the topology serviceget_topology_nodes: Get topology nodes from the topology serviceget_topology_events: Get topology events from the topology service
Development
Setup
# Clone the repository
git clone https://github.com/yourusername/topology-mcp.git
cd topology-mcp
# Install in development mode
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.0.tar.gz
(3.0 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.0.tar.gz.
File metadata
- Download URL: topology_mcp-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17baa9ce8b3a7946b16f3552eeee875f486dd3f439973555447b2e105bfab814
|
|
| MD5 |
0b1d9ba2a4b5459a35cb022126321590
|
|
| BLAKE2b-256 |
a09312bf4a54ec976594f0b90d948b0673c780055bf6e75a9f4c60a8c2f06d51
|
File details
Details for the file topology_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: topology_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.1 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 |
0a53a776c469046f377fef8f201fa07e98d79ef11c0c2f7ae96b5718a0cfce45
|
|
| MD5 |
272e63076626ce33d72c7670b59af7b3
|
|
| BLAKE2b-256 |
c966d2090d87d99006a6ccd6d719dbd738f0ec1bdb95c0903b5f8b05d3a83cf2
|