mcp-toolkit
mcp-toolkit
MCP-сервер общего назначения для ИИ-агентов. Создан на базе Python 3.13, FastMCP и Playwright.
Доступные инструменты
Инструмент | Описание |
| Поиск в DuckDuckGo и извлечение веб-контента с помощью Playwright |
| Извлечение основного контента по прямой ссылке |
| Выполнение общих HTTP-запросов без использования Playwright |
| Возвращает текущую дату и время в указанном часовом поясе |
| Конвертация часовых поясов и расчет дат/длительности |
| Сохранение постоянного значения в SQLite |
| Извлечение сохраненного значения |
| Удаление ключа |
| Список всех ключей (с опциональной фильтрацией по префиксу) |
| Очистка всей памяти (необратимо!) |
| Поиск текста в сохраненных ключах и значениях |
| Выполнение кода Python в песочнице с ограничением по времени |
| Выполнение кода JavaScript через Node.js в песочнице с таймаутом |
Related MCP server: MCP Server
Установка
Предварительные требования
Установленный UV
Python 3.13 (UV скачает его автоматически, если он отсутствует)
Node.js (опционально, только для
run_js)
Вариант А — Установка из локальной папки
git clone https://github.com/YoshiLoL0526/mcp-toolkit
cd mcp-toolkit
uv tool install --python 3.13 .Вариант Б — Установка напрямую из GitHub
uv tool install --python 3.13 git+https://github.com/YoshiLoL0526/mcp-toolkitОбязательный шаг: установка Chromium для Playwright
После установки пакета выполните эту команду один раз:
# Obtener la ruta del entorno virtual creado por uv tool
uv tool run --from mcp-toolkit python -m playwright install chromiumИли, альтернативно, если вы знаете путь к окружению:
~/.local/share/uv/tools/mcp-toolkit/bin/python -m playwright install chromiumНастройка в MCP-клиентах
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json)
{
"mcpServers": {
"mcp-toolkit": {
"command": "mcp-toolkit"
}
}
}В Windows путь выглядит так:
%APPDATA%\Claude\claude_desktop_config.json
Cursor / VS Code (.cursor/mcp.json или .vscode/mcp.json)
{
"servers": {
"mcp-toolkit": {
"type": "stdio",
"command": "mcp-toolkit"
}
}
}HTTP-сервер (для удаленного доступа или нескольких клиентов)
mcp-toolkit --transport http --host 0.0.0.0 --port 8080Сервер будет прослушивать http://<host>:<port>/mcp, используя транспорт streamable-http (текущий стандарт MCP). Вы можете изменить путь с помощью --path /другой-путь.
Транспорт
--transport sseсохранен для совместимости со старыми клиентами, но он считается устаревшим начиная с FastMCP 2.3.
Использование инструментов
web_search
Parámetros:
query (str) — texto a buscar
max_results (int) — resultados a devolver, default 5, máximo 10
deep (bool) — si True, extrae el contenido completo de cada página
language (str) — idioma para las cabeceras HTTP, default "es-ES"Пример (агент):
Busca las últimas noticias sobre Python 3.13 con deep=Truefetch_url
Parámetros:
url (str) — URL absoluta HTTP o HTTPS a leerПример (агент):
Lee https://example.com/articulo con fetch_urlhttp_request
Parámetros:
method (str) — método HTTP: GET, POST, PUT, PATCH, DELETE, HEAD u OPTIONS
url (str) — URL absoluta HTTP o HTTPS
headers (dict) — cabeceras opcionales
body (str) — cuerpo opcional como texto
timeout (int) — segundos máximos, default 10, máximo 60Пример (агент):
Haz un POST a https://api.example.com/items con http_requesttime_now / date_utils
time_now(timezone_name="UTC")
date_utils(
action="convert_timezone",
value="2026-04-21T12:00:00+00:00",
target_timezone="America/New_York"
)Действия, поддерживаемые date_utils: parse, convert_timezone, add и diff. Для дат без смещения используется timezone_name; часовые пояса должны быть именами IANA, такими как UTC, America/New_York или Europe/Madrid.
memory_set / memory_get
memory_set(key="usuario_nombre", value="Carlos", namespace="default")
memory_get(key="usuario_nombre", namespace="default")
memory_list(prefix="usuario_", namespace="default")
memory_search(query="Carlos", namespace="default")Данные сохраняются в ~/.local/share/mcp-toolkit/memory.db.
Все инструменты работы с памятью принимают namespace для разделения данных по проектам, клиентам или беседам. Если не указано, используется default.
run_python
Parámetros:
code (str) — código Python a ejecutar
timeout (int) — segundos máximos, default 10, máximo 60
stdin (str) — entrada estándar opcionalОграничения безопасности:
Минимальное окружение: не наследует секреты или произвольные переменные хост-процесса
Временная рабочая директория для каждого выполнения
HTTP-прокси переопределяются переменными окружения
Лимит памяти: 256 МБ (Linux/macOS)
Строгий таймаут: процесс завершается при истечении времени
В Windows лимит памяти на процесс, применяемый из Python, не работает
Блокировка сети не является гарантией сильной изоляции; для ненадежного кода рекомендуется запускать сервер внутри контейнера или виртуальной машины с сетевыми политиками
run_js
Те же параметры, что и у run_python. Требует установленного в системе Node.js.
Разработка
git clone https://github.com/YoshiLoL0526/mcp-toolkit
cd mcp-toolkit
uv sync
uv run python -m playwright install chromium
# Ejecutar en modo desarrollo
uv run mcp-toolkit
# Tests
uv run pytestДобавление нового инструмента
Создайте
mcp_toolkit/tools/mi_tool.pyс функциейasync def mi_tool(...) -> strИмпортируйте и зарегистрируйте её в
server.pyс помощьюmcp.tool()(mi_tool)Переустановите:
uv tool install --python 3.13 . --reinstall
Структура проекта
mcp-toolkit/
├── pyproject.toml
├── README.md
├── mcp_toolkit/
│ ├── server.py # FastMCP app + registro
│ ├── tools/
│ │ ├── web_search.py # Playwright: buscar + extraer
│ │ ├── fetch_url.py # Extraer una URL directa
│ │ ├── http_request.py # Cliente HTTP genérico
│ │ ├── date_time.py # Fechas, zonas horarias y duraciones
│ │ ├── memory.py # SQLite KV store con namespaces
│ │ ├── run_python.py # Sandbox Python
│ │ └── run_js.py # Sandbox Node.js
│ └── utils/
│ ├── browser.py # Singleton Playwright
│ └── sandbox.py # Helpers de subprocess y timeout
└── tests/Лицензия
MIT
Available Tools
8 toolsmemory_clearA
Elimina TODAS las claves de la memoria persistente. Usar con precaución: esta acción no se puede deshacer.
Returns: Número de entradas eliminadas.
Inputs: no named parameters. Returns: result
memory_deleteB
Elimina una clave de la memoria persistente.
Inputs: key (required). Returns: result
memory_getB
Recupera el valor almacenado bajo una clave.
Inputs: key (required). Returns: result
memory_listA
Lista todas las claves almacenadas, con filtro opcional por prefijo.
Inputs: prefix. Returns: result
memory_setB
Guarda un valor en memoria persistente bajo una clave.
Inputs: key (required), value (required). Returns: result
run_jsA
Ejecuta un fragmento de código JavaScript con Node.js y devuelve su salida.
El código corre en un subproceso separado con:
Timeout configurable (por defecto 10 segundos).
Sin acceso a red (variables de entorno anuladas).
Node.js debe estar instalado en el sistema.
Inputs: code (required), timeout, stdin. Returns: result
run_pythonA
Ejecuta un fragmento de código Python y devuelve su salida.
El código corre en un subproceso separado con:
Timeout configurable (por defecto 10 segundos).
Sin acceso a red (variables de entorno anuladas).
Límite de memoria de 256 MB en Linux.
El módulo sys.exit() termina el proceso sin errores.
Inputs: code (required), timeout, stdin. Returns: result
web_searchB
Busca en internet usando DuckDuckGo y Playwright.
Inputs: query (required), max_results, deep, language. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Every tool has a clearly distinct purpose with no ambiguity. The five memory_* tools handle different CRUD operations for persistent storage, while run_js and run_python execute code in different languages, and web_search performs internet searches. There is no overlap in functionality between these categories.
Tool names follow a consistent verb_noun pattern throughout. The memory tools use clear action verbs (clear, delete, get, list, set) paired with 'memory', while the execution tools use 'run_' followed by the language, and web_search follows the same convention. All names are in snake_case with no deviations.
With 8 tools, the count is reasonable for a toolkit server. However, the scope feels slightly broad, combining memory management, code execution in two languages, and web search into one server, which might be better split. The tools earn their place, but the domain is not tightly focused.
For the memory domain, the tools provide complete CRUD coverage (set, get, delete, list, clear). For code execution, both JavaScript and Python are covered. The web_search tool adds internet capability. Minor gaps include no update operation for memory (though set can overwrite) and no tool for executing other languages, but agents can work around these.
Related MCP Connectors
Web search API and MCP server for developers building AI agents.
Hosted MCP server for live public-data APIs and Skills for AI agents.
Capability registry for the agentic economy. Semantic search over verified MCP server listings.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that enables web searching, URL content extraction, and summarization without requiring API keys. It also provides advanced mathematical evaluation and multi-language Wikipedia summary retrieval tools.5762 npm10MIT
- AlicenseNot gradedqualityDmaintenanceA modular MCP server providing file operations, web search, URL scraping, and sandboxed command execution for LLM interactions.1MIT
- AlicenseAqualityFmaintenanceAn MCP server that provides real-time web search to AI agents via a pay-per-search USDC microtransaction system.562 npm1MIT
- AlicenseNot gradedqualityBmaintenanceA powerful MCP server that enables LLMs to safely execute code, control file systems, search the web, and integrate with services like Gmail and TMDB.MIT