Описание
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.
Установка Scanopy
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/maxparez/scanopy-mcp-serverFAQ
Scanopy MCP бесплатный?
Да, Scanopy MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Scanopy?
Нет, Scanopy работает без API-ключей и переменных окружения.
Scanopy — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Scanopy в Claude Desktop, Claude Code или Cursor?
Открой Scanopy на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: 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
автор: mcpdotdirectCompare Scanopy with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
