About
Scanopy — Model Context Protocol server
README
Model Context Protocol (MCP) server that exposes Scanopy API tools to AI assistants like Claude, Codex, and Gemini.
What is this?
This MCP server allows AI assistants to interact with your Scanopy instance through a set of automatically generated tools based on Scanopy's OpenAPI specification. It provides:
- Read operations: List networks, sessions, devices, and more
- Write operations: Create, update, and delete resources (with safety confirmations)
- Dry-run support: Test write operations without making actual changes
- Allowlist control: Only expose the tools you need
How it works
- The server loads Scanopy's OpenAPI spec and generates MCP tools
- Your AI assistant connects to the server via stdio
- The assistant can call tools to interact with your Scanopy instance
- Write operations require a confirmation string for safety
Installation
Installation differs by platform. Choose your AI assistant below.
Claude Code (CLI)
- Clone and set up the repository:
git clone https://github.com/maxparez/scanopy-mcp-server.git
cd scanopy-mcp-server
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -e ".[dev]"
- Configure your environment:
Create a
.envfile in the repository root:
SCANOPY_BASE_URL=https://your-scanopy-instance.com
SCANOPY_API_KEY=scp_u_your_api_key_here
SCANOPY_CONFIRM_STRING=I understand this will modify Scanopy
- Register the MCP server:
claude mcp add scanopy \
--env SCANOPY_BASE_URL="$SCANOPY_BASE_URL" \
--env SCANOPY_API_KEY="$SCANOPY_API_KEY" \
--env SCANOPY_CONFIRM_STRING="$SCANOPY_CONFIRM_STRING" \
-- $(pwd)/.venv/bin/python -m scanopy_mcp.main
- Verify installation:
claude mcp list
You should see scanopy in the list of registered MCP servers.
Codex CLI
Set up the repository (same as Claude Code steps 1-2 above)
Register the MCP server:
codex mcp add scanopy \
--env SCANOPY_BASE_URL="$SCANOPY_BASE_URL" \
--env SCANOPY_API_KEY="$SCANOPY_API_KEY" \
--env SCANOPY_CONFIRM_STRING="$SCANOPY_CONFIRM_STRING" \
-- $(pwd)/.venv/bin/python -m scanopy_mcp.main
- Verify installation:
codex mcp list
codex mcp invoke --name tools/list
Gemini CLI
Set up the repository (same as Claude Code steps 1-2 above)
Register the MCP server:
gemini mcp add scanopy \
--scope user \
--command $(pwd)/.venv/bin/python \
--args -m scanopy_mcp.main
- Verify installation:
gemini mcp list
Using the Server
Once installed, you can interact with Scanopy through your AI assistant:
In Claude Code:
/mcp list # See all available tools
/mcp call list_networks # Call a specific tool
Example conversations:
- "List all networks in my Scanopy instance"
- "Show me recent sessions for network XYZ"
- "Create a new network named 'Production' (with confirmation)"
Safety Features
- Write protection: All write operations (POST, PUT, PATCH, DELETE) require a confirmation string
- Dry-run mode: Test write operations without making actual changes
- Allowlist: Configure which tools are exposed (via
scanopy_mcp/allowlist.py)
Development
Running tests
pytest
Running the server standalone
python -m scanopy_mcp.main
Testing all tools
python3 scripts/run_all_tools.py --out logs/tool-report.json --dry-run-writes
Configuration Reference
| Environment Variable | Required | Description |
|---|---|---|
SCANOPY_BASE_URL |
Yes | Your Scanopy instance URL (e.g., https://scanopy.example.com) |
SCANOPY_API_KEY |
Yes | Your Scanopy API key (starts with scp_u_) |
SCANOPY_CONFIRM_STRING |
Yes | Confirmation phrase for write operations |
SCANOPY_SESSION_ID |
No | Optional session ID for tracking |
Contributing
See CONTRIBUTING.md for development guidelines.
License
MIT - See LICENSE for details.
Security
Never commit your .env file or API keys to version control. See SECURITY.md for security best practices.
Installing Scanopy
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/maxparez/scanopy-mcp-serverFAQ
Is Scanopy MCP free?
Yes, Scanopy MCP is free — one-click install via Unyly at no cost.
Does Scanopy need an API key?
No, Scanopy runs without API keys or environment variables.
Is Scanopy hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Scanopy in Claude Desktop, Claude Code or Cursor?
Open Scanopy on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Scanopy with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
