MCP Network JCD
MCP server for querying network devices via SSH. Supports Palo Alto firewalls and Cisco IOS devices.
Installation
pip install mcp-network-jcd
Or from source:
python3.12 -m venv .venv
source .venv/bin/activate
pip install -e .
Configuration
Set environment variables for credentials:
# Palo Alto
export PALOALTO_USERNAME="readonly_user"
export PALOALTO_PASSWORD="your_password"
# Cisco IOS
export CISCO_USERNAME="readonly_user"
export CISCO_PASSWORD="your_password"
export CISCO_ENABLE_PASSWORD="enable_secret" # Optional
Claude Desktop
Add to ~/.config/claude/claude_desktop_config.json:
{
"mcpServers": {
"mcp-network-jcd": {
"command": "python",
"args": ["-m", "mcp_network_jcd.server"],
"env": {
"PALOALTO_USERNAME": "readonly_user",
"PALOALTO_PASSWORD": "your_password",
"CISCO_USERNAME": "cisco_user",
"CISCO_PASSWORD": "cisco_password",
"CISCO_ENABLE_PASSWORD": "enable_secret"
}
}
}
}
Tools
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
cisco_ios_query
Query Cisco IOS devices 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 version
show ip interface brief
show ip route | include 10.0
show running-config | section interface
show interfaces status
# Avoid (output too large)
show running-config # full config
show ip route # without filter on large routing tables
show tech-support
Enable Mode
If CISCO_ENABLE_PASSWORD is set, the tool automatically enters privileged EXEC mode before running commands.
Error Codes
Both tools return structured error responses:
| Code | Description |
|---|---|
CONFIG_ERROR |
Missing credentials in environment |
AUTH_FAILED |
Invalid username/password or enable password |
CONNECTION_TIMEOUT |
Device unreachable |
CONNECTION_REFUSED |
SSH connection rejected |
UNKNOWN_ERROR |
Unexpected error |
Development
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Lint
ruff check .
License
MIT
Metadata
Release files for mcp-network-jcd 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mcp_network_jcd-0.3.3.tar.gz | 92.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_network_jcd-0.3.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 109.2 kB
Release files / mcp_network_jcd-0.3.3.tar.gz
| Download URL | mcp_network_jcd-0.3.3.tar.gz |
|---|---|
| Size | 92.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb98e2dda8b164948e1b2273ad4703744405018b9e6d138420420ae1e171f0c9
|
|
BLAKE2b-256 checksum How to use checksums |
204a51bfc4eb99b2ac3e23ce2f310355f1dea3379f9c6f9e369eceb65b6fe6d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / mcp_network_jcd-0.3.3-py3-none-any.whl
| Download URL | mcp_network_jcd-0.3.3-py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a362a0f0023890daa76c921ba12df9e41b720ac7917e5179c2797a9451cb3233
|
|
BLAKE2b-256 checksum How to use checksums |
bc711c4fbbde08b28aa643d1e7343e28669520006b7a5a5b6f95022adf99697f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for mcp-network-jcd 0.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.