Skip to main content

MCP server for network device management (Palo Alto firewalls via SSH)

Project description

MCP Network JCD

MCP server for querying network devices. Currently supports Palo Alto firewalls via SSH.

Installation

python3.12 -m venv .venv
source .venv/bin/activate
pip install -e .

Configuration

Set environment variables for credentials:

export PALOALTO_USERNAME="readonly_user"
export PALOALTO_PASSWORD="your_password"

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-network-jcd": {
      "command": "python",
      "args": ["-m", "mcp_network_jcd.server"],
      "cwd": "/path/to/mcp-network-jcd",
      "env": {
        "PALOALTO_USERNAME": "readonly_user",
        "PALOALTO_PASSWORD": "your_password"
      }
    }
  }
}

Tool: paloalto_query

Query Palo Alto firewall via SSH.

Input: host*, commands* (1-10), port (22), timeout (30s)

Output: {success, device, results[], total_duration_ms, timestamp}

Usage Tips

Use filtered commands to avoid large outputs:

# Good
show routing route | match 10.14
test security-policy-match from ZONE1 to ZONE2 source IP destination IP protocol 6 destination-port 443
show interface logical
show system info

# Avoid (output too large)
show running security-policy
show session all
show routing route  # without filter

Development

# Run tests
pytest

# Lint
ruff check .

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

mcp_network_jcd-0.1.0.tar.gz (67.1 kB view details)

Uploaded Source

Built Distribution

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

mcp_network_jcd-0.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file mcp_network_jcd-0.1.0.tar.gz.

File metadata

  • Download URL: mcp_network_jcd-0.1.0.tar.gz
  • Upload date:
  • Size: 67.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for mcp_network_jcd-0.1.0.tar.gz
Algorithm Hash digest
SHA256 37d2a4edb96e220207577e2ee9c2b6480cdc486a94ff929afcf5c7309d5db7ac
MD5 5aea2cae639e878759d2e7c5776080ba
BLAKE2b-256 24b4b16543d2faec178f2562e8bf17ab80e7250bca892606591eea4de99643d1

See more details on using hashes here.

File details

Details for the file mcp_network_jcd-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_network_jcd-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9160a602dd190e6a9358b2e12d945e02865706fd11086efade7f90c9397f0ec4
MD5 4b1ae28536c2b96989ce5fbd67069c51
BLAKE2b-256 336f797431066a68358ab1facb21f2fa15a996a38d85a6534cdb3316eb644c38

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