MCP CopyQ Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP CopyQ Serversearch for API documentation in my workspace"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP CopyQ Server
MCP-сервер для интеграции CopyQ (менеджер буфера обмена) с LLM-агентами.
Концепция
Структура данных в CopyQ
mcp/
├── info/ # 🔒 только элементы (без подвкладок)
├── заметки/ # 🔒 только элементы (без подвкладок)
└── workspace/ # ✅ элементы + подвкладкиЭлемент (Item)
Каждый элемент содержит:
text — основной текст
tags — метки (массив строк)
note — заметка к тексту
Related MCP server: Joplin MCP Server
Инструменты (3 шт.)
1. mcp_read
Универсальное чтение данных.
Параметры
Параметр | Тип | Default | Описание |
|
| — | обязательный |
| string |
| Путь: |
| number | — | Для mode=item |
| string | — | Для mode=search (regex) |
|
|
| Где искать |
| number | 2 | Для tree — макс. глубина |
| number | 20 | Лимит элементов |
| number | 0 | Пагинация — пропустить N |
| bool | true | Включить текст/превью |
| bool | true | Включить метки |
| bool | false | Включить заметку |
Режимы (mode)
tree — структура вкладок с метаданными
mcp/info [5]
0: "Инструкция по API..." [api,docs]
1: "Конфиг сервера..." [config]
mcp/workspace [3]
└─ mcp/workspace/проект1 [12]list — элементы конкретной вкладки
mode:list|tab:info|total:47|showing:0-19
0|"Инструкция по API..."|[api,docs]|+note
1|"Конфиг сервера..."|[config]|item — один элемент полностью
search — поиск по содержимому
Возможные ошибки
Код | Описание |
| Вкладка не существует |
| Индекс за пределами |
| Неизвестный mode |
Под капотом (CopyQ CLI)
# tree
copyq tab | grep "^mcp/"
copyq tab "mcp/..." count
copyq tab "mcp/..." read 0 | head -c 50
# list
copyq tab "mcp/${tab}" count
copyq tab "mcp/${tab}" read $i
copyq tab "mcp/${tab}" read "application/x-copyq-tags" $i
# item
copyq tab "mcp/${tab}" read ${index}
copyq tab "mcp/${tab}" read "application/x-copyq-tags" ${index}
copyq tab "mcp/${tab}" read "application/x-copyq-item-notes" ${index}
# search
copyq eval "/* JS: grep по tabs */"2. mcp_write
Универсальная запись данных.
Параметры
Параметр | Тип | Default | Описание |
| string | — | обязательный (см. ниже) |
| string | — | Путь вкладки |
| number | — | Для item-операций |
| string | — | Текст (для add/update) |
| string[] | — | Метки |
| string | — | Заметка |
|
| — | Для update — что менять |
|
|
| Как менять |
| string | — | Для substitute — что заменить |
| string | — | Для move — куда переместить |
| string | — | Для tab_create/tab_delete |
|
|
| Выполнить или показать эффект |
Режимы (mode)
mode | Уровень | Описание | Обязательные параметры |
| item | Добавить элемент в начало | tab, text |
| item | Изменить элемент | tab, index, field, (text/tags/note) |
| item | Удалить элемент | tab, index |
| item | Переместить в другую вкладку | tab, index, to_tab |
| collection | Создать подвкладку | path (только workspace/*) |
| collection | Удалить подвкладку | path (только workspace/*) |
edit_mode для update
field | edit_mode | Действие |
text/note |
| Полная замена |
text/note |
| Дописать в конец |
text/note |
| Дописать в начало |
text/note |
| Заменить |
tags |
| Заменить все метки |
tags |
| Добавить метки (сохранив старые) |
tags |
| Удалить указанные метки |
intent: preview
При intent="preview" — не выполняет действие, а возвращает что произойдёт:
action: delete
target: mcp/info[3]
will_remove: "Текст который удалится..." | [метки] | +noteВозможные ошибки
Код | Описание |
| Вкладка не существует |
| Индекс за пределами |
| tab_create/tab_delete вне workspace |
| Неизвестный mode |
| Не хватает обязательного параметра |
| substitute: match не найден в тексте |
Формат ответа
ok|mode:add|tab:info|index:0|text_len:156|tags:2Под капотом (CopyQ CLI)
# add
copyq tab "mcp/${tab}" write 0 \
"text/plain" "${text}" \
"application/x-copyq-tags" "${tags}" \
"application/x-copyq-item-notes" "${note}"
# update (substitute)
OLD=$(copyq tab "mcp/${tab}" read ${index})
NEW=$(echo "$OLD" | sed "s/${match}/${value}/g")
TAGS=$(copyq tab "mcp/${tab}" read "application/x-copyq-tags" ${index})
NOTE=$(copyq tab "mcp/${tab}" read "application/x-copyq-item-notes" ${index})
copyq tab "mcp/${tab}" write ${index} \
"text/plain" "$NEW" \
"application/x-copyq-tags" "$TAGS" \
"application/x-copyq-item-notes" "$NOTE"
# delete
copyq tab "mcp/${tab}" remove ${index}
# move
# read all → write to to_tab → remove from tab
# tab_create
copyq tab "mcp/${path}"
# tab_delete
copyq removeTab "mcp/${path}"3. mcp_validate
Проверить корректность вызова без выполнения.
Параметры
Параметр | Тип | Описание |
|
| Какой инструмент проверить |
| object | Параметры вызова |
Формат ответа
Успех:
valid: true | warnings: [] | estimated_tokens: 340Ошибка:
valid: false | errors: ["TAB_NOT_FOUND: workspace/xxx"]Права доступа
Операция | info | заметки | workspace |
read (все режимы) | ✅ | ✅ | ✅ |
add | ✅ | ✅ | ✅ |
update | ✅ | ✅ | ✅ |
delete | ✅ | ✅ | ✅ |
move | ✅ | ✅ | ✅ |
tab_create | ❌ | ❌ | ✅ |
tab_delete | ❌ | ❌ | ✅ |
Установка
# Требования
# - Python 3.11+
# - CopyQ установлен и запущен
# - Путь к CopyQ: C:\Program Files\CopyQ\copyq.exe
# Установка
cd C:\sts\projects\mcp-copyq
uv venv
uv pip install -e .
# Запуск
uv run mcp-copyqКонфигурация Claude Desktop
{
"mcpServers": {
"copyq": {
"command": "uv",
"args": ["--directory", "C:\\sts\\projects\\mcp-copyq", "run", "mcp-copyq"]
}
}
}Примеры использования
Получить структуру
mcp_read(mode="tree", max_depth=2, max_items=5)Список элементов вкладки
mcp_read(mode="list", tab="info", max_items=10, include_note=true)Прочитать элемент
mcp_read(mode="item", tab="info", index=0)Поиск
mcp_read(mode="search", query="API", search_in="all", max_items=10)Добавить элемент
mcp_write(mode="add", tab="info", text="Новая запись", tags=["important"])Изменить текст (дописать в конец)
mcp_write(mode="update", tab="info", index=0, field="text", edit_mode="append", text="\n\nДополнение")Заменить фрагмент
mcp_write(mode="update", tab="info", index=0, field="text", edit_mode="substitute", match="старое", text="новое")Добавить метку (сохранив существующие)
mcp_write(mode="update", tab="info", index=0, field="tags", edit_mode="append", tags=["urgent"])Удалить с превью
mcp_write(mode="delete", tab="info", index=0, intent="preview")
mcp_write(mode="delete", tab="info", index=0, intent="execute")Создать подвкладку
mcp_write(mode="tab_create", path="workspace/новый_проект")Переместить элемент
mcp_write(mode="move", tab="info", index=0, to_tab="workspace/архив")Принципы дизайна
Минимум инструментов — 3 вместо 10+
Stateless — каждый вызов независим
Компактные ответы — pipe-separated, без лишних полей
Пагинация — skip/max_items для больших данных
Явные параметры —
include_textвместоfields: "minimal"Preview mode — intent="preview" для опасных операций
Чёткие ошибки — коды + описания
Структура проекта
mcp-copyq/
├── README.md
├── pyproject.toml
├── src/
│ └── mcp_copyq/
│ ├── __init__.py
│ ├── server.py # MCP server
│ ├── copyq_client.py # CopyQ CLI wrapper
│ ├── tools/
│ │ ├── __init__.py
│ │ ├── read.py # mcp_read
│ │ ├── write.py # mcp_write
│ │ └── validate.py # mcp_validate
│ ├── models.py # Pydantic models
│ └── errors.py # Error codes
└── tests/
├── __init__.py
├── test_read.py
├── test_write.py
├── test_validate.py
└── test_integration.pyЛицензия
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- Alicense-qualityDmaintenanceProvides AI assistants access to the macOS clipboard content, supporting text, images, and binary data via OSAScript.Last updated8MIT
- Flicense-quality-maintenanceEnables AI assistants to manage Joplin Notes through the Web Clipper API, supporting note creation, updates, search, notebook organization, and tag management.Last updated
- FlicenseCqualityFmaintenanceProvides LLM agents with comprehensive access to Obsidian vaults via the official Obsidian CLI bridge. It enables users to read, search, and modify notes, tasks, properties, and plugins while the Obsidian desktop app is running.Last updated5414
- Alicense-qualityDmaintenanceProvides secure file access and clipboard history management for Claude AI and other MCP-compatible clients, with sandboxed file operations and search capabilities.Last updated114MIT
Related MCP Connectors
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Search, read, and write your Apple Notes from ChatGPT/Claude via a local Mac agent + MCP relay.
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/list91/mcp-copyq'
If you have feedback or need assistance with the MCP directory API, please join our Discord server