Skip to main content

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 to http://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


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.10.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

topology_mcp-0.1.10-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file topology_mcp-0.1.10.tar.gz.

File metadata

  • Download URL: topology_mcp-0.1.10.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

Hashes for topology_mcp-0.1.10.tar.gz
Algorithm Hash digest
SHA256 8cf0f341ce62fac82e1ce7a264eb68c12ca80b7f35c3dec10b4addfed7acc31c
MD5 8dca435e319401b7692280c98ef39472
BLAKE2b-256 c72097b6c2acc3c52a3d7f02c25deb8af0b986c7393face3f3f07d4252bd294a

See more details on using hashes here.

File details

Details for the file topology_mcp-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: topology_mcp-0.1.10-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

Hashes for topology_mcp-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 498fa34ed5a1c6d3ab46c4a683d9c7df310f73d27d3e94ac0568d49170035e18
MD5 8fc56ec17133d2a3d02d6ea9f2184bd4
BLAKE2b-256 d6729de43e5e4fd1e5655fe7c430eb549929a498bdd3f95b9f5581d88931fb67

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page