mcp-tools-for-agents
Provides tools for video and audio processing via FFmpeg, including probing media, cutting and concatenating videos, detecting scenes, extracting frames, and extracting audio tracks.
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-tools-for-agentscut the first 10 seconds of intro.mp4"
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-tools-for-agents
Dê mãos ao seu agente de IA.
Um servidor MCP local, em Python puro, que entrega ao seu agente ferramentas reais de vídeo, áudio e arquivos. Sem API, sem rede, sem UI. O agente sobe o servidor como subprocesso, recebe as tools e trabalha dentro de um workspace isolado.
Funciona com Claude Code, Claude Desktop, Cursor e qualquer host MCP.
Por que esse projeto existe
Modelos são bons em decidir. São péssimos em executar ffmpeg na mão.
Este projeto fecha esse buraco com tools desenhadas para o modelo ler:
Erro que ensina. Toda falha volta como
{"error", "code", "hint"}. Ohintdiz ao agente o que fazer a seguir. Ele se corrige sozinho.Workspace como fronteira. Nada fora de
WORKSPACE_DIRé lido ou escrito. Nem com.., nem com caminho absoluto.Operação longa não trava. Passe
background=true, receba umjob_id, acompanhe comjob_status, busque comjob_result.Resposta sempre tipada. Cada tool devolve um
TypedDict. Zero surpresa.Um arquivo por tool. Abriu o arquivo, entendeu a tool. Criar uma nova leva minutos.
Related MCP server: ffmpeg-mcp
Em 60 segundos
git clone https://github.com/theguil/mcp-tools-for-agents
cd mcp-tools-for-agents
uv sync
cp .env.example .env # ajuste WORKSPACE_DIR
uv run mcp-tools # servidor no ar, via stdioRequisitos: Python 3.14 (o uv instala), FFmpeg e FFprobe no PATH.
Plugar no agente
{
"mcpServers": {
"media": {
"command": "uv",
"args": ["run", "--directory", "/caminho/mcp-tools-for-agents", "mcp-tools"],
"env": { "WORKSPACE_DIR": "/dados/videos" }
}
}
}Cole isso no .mcp.json (Claude Code), no claude_desktop_config.json (Claude Desktop)
ou no equivalente do seu host. Pronto: peça "corta os 10 primeiros segundos do intro.mp4"
e veja acontecer.
Tools
Domínio | Tool | O que faz |
files |
| Lista arquivos do workspace, com filtro por tipo |
files |
| Apaga um arquivo |
video |
| Duração, resolução, fps, codecs |
video |
| Recorta um trecho, com ou sem re-encode |
video |
| Junta vídeos em sequência |
video |
| Encontra mudanças de cena |
video |
| Salva um frame como imagem |
audio |
| Separa a trilha de áudio |
audio |
| Transcreve fala com timestamps (extra |
jobs |
| Estado de um job em background |
jobs |
| Saída de um job concluído |
Ative só o que precisa com MCP_DOMAINS=video,files.
Como é por dentro
server.py cria o MCPServer e registra os domínios
config.py único lugar que lê variáveis de ambiente
core/ ffmpeg, paths, jobs, errors. Não conhece MCP.
domains/ um pacote por área, um arquivo por tool
tests/ espelha a estrutura acimaUma tool inteira, do jeito que todas são:
@guarded
def delete_file(runtime: Runtime, path: str) -> DeleteFileResult:
target = runtime.workspace.existing(path)
size = target.stat().st_size
target.unlink()
return DeleteFileResult(deleted=runtime.workspace.relative(target), freed_bytes=size)
def register(mcp: MCPServer[None], runtime: Runtime) -> None:
@mcp.tool(name="delete_file")
def _tool(path: str) -> DeleteFileResult | ErrorPayload:
"""Apaga permanentemente um arquivo do workspace.
Args:
path: Arquivo, relativo ao workspace.
"""
return delete_file(runtime, path)Função pura e testável em cima, registro com docstring para o agente embaixo. É só isso.
Contribuir
Quer uma tool nova? Copie domains/files/delete.py, troque o miolo, escreva o teste
espelhado em tests/, adicione a linha na tabela acima. As regras completas estão em
.claude/rules/arquitetura.md, e se você usa Claude Code, /nova-tool faz o roteiro.
Antes do PR, os três precisam passar:
uv run ruff check . && uv run ruff format --check .
uv run mypy
uv run pytestRuff em ALL, mypy em strict. Rígido de propósito: é o que mantém cada tool
pequena, previsível e fácil de confiar.
Licença
MIT.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
FFmpeg as a service for AI agents: typed video editing tools, async jobs, downloadable outputs.
Video, audio, and image processing for AI agents: convert, transcribe, upscale - 150+ operations.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
15 media & data tools for AI agents: search, transcribe, subtitles, voiceover, translate & more.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables secure video and audio processing using FFmpeg commands in an isolated sandbox environment. Supports file management, Google Cloud Storage integration, and URL-based file transfers for AI-powered multimedia operations.MIT
- AlicenseAqualityDmaintenanceProvides video and audio manipulation tools powered by FFmpeg, enabling AI assistants to perform media operations such as cutting, converting, and removing silence.61052MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI agents to process files locally — OCR images, extract text from PDFs and DOCX, and describe images using local vision models, all without sending data to external services.-
- FlicenseAqualityDmaintenanceEnables local media processing (video/audio) using FFmpeg and FFprobe, allowing frame extraction, audio conversion, and metadata retrieval through natural language.5-
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/theGuil/mcp-tools-for-agents'
If you have feedback or need assistance with the MCP directory API, please join our Discord server