SuperAPI AI Directory

legwork

Legwork is an MCP server for AI clients that lets AI automatically search GitHub for an open-source tool when one is needed, select a repository, and install, test, and deliver it for use in a sandbox. It supports MCP clients such as Claude Desktop, Cursor, Codex, and opencode. Before installation, it statically scans the code for obfuscated payloads; after installation, tools run in a restricted sandbox and can only read folders authorized by the user. The project is free and MIT-licensed, and the 47 tools in the public cache can be installed without an API key, covering speech-to-text, OCR, background removal, PDF table extraction, QR code generation, and more. It requires macOS or Linux and uv; native Windows is not supported.

Open website

About this tool

Legwork is an MCP server whose goal is to let AI, when it lacks a certain tool, find a suitable open-source repository on GitHub on its own and install it as a usable tool. Users only need to configure Legwork once in Claude Desktop, Cursor, Codex, opencode, or another MCP client; afterward, when the AI has no ready-made tool available, it searches GitHub, selects a repository, and requests the user's approval to install. Legwork then checks whether the code hides malicious payloads, builds a working tool in a sandbox, runs self-tests, and delivers it to the AI for use.

In terms of main capabilities, Legwork provides five MCP tools: find_tools, install_tool, install_status, list_installed_tools, and use_tool. Search results show a repository's star count, license, most recent update time, whether it is in the Legwork cache, whether it already has an MCP server, and warn about very new repositories. Before installation, it performs a static scan of all Python and JavaScript/TypeScript files to identify obfuscated payloads such as XOR-decoded byte arrays, computed imports, javascript-obfuscator output, eval executed on decoded strings, and code hidden off-screen; once a match is found, installation stops. Installation and self-testing both take place in a sandbox, and self-test failures are fed back to the model for retries, up to 3 times and 30 minutes. Installed tools appear by name, and installation records persist across restarts.

For usage, macOS or Linux and uv are required. For Claude Desktop (macOS), you can download legwork.mcpb and double-click to install it as an extension, then choose in settings the folders the tools can read (Downloads by default) and whether to allow network access. For Claude Code, it can be installed from the repository as a plugin. For Cursor or a Claude Desktop without the extension, you can add the corresponding entry in the MCP configuration. For opencode, you can edit ~/.config/opencode/opencode.json and add a permission line so that it asks before installing. The 47 tools in the public cache require no API key and can be installed in about a minute; other repositories require OpenAI-compatible chat completion endpoint key, build takes 1–5 minutes, the key can be placed in ~/.legwork.env. On the command line you can also use legwork find to search, legwork build to build, and legwork serve to run.

Use cases include: having AI transcribe voice memos or videos offline, removing image backgrounds, extracting tables from PDFs, generating QR codes, and using cached speech-to-text, OCR, PDF/Office file processing, ebooks, photo metadata, 7z archives, video, YouTube transcripts, charts, pandas, DuckDB, CSV, dates, phone numbers, spelling, math and units, linters and formatting tools, etc. Files generated by tools are copied to ~/Legwork/outputs/, and authorized folders remain read-only.

Regarding limitations, Windows is not natively supported, and WSL2 has not been tested; macOS or Linux and uv are required. Networked tools (such as YouTube transcripts and downloads, and web pages) require starting the hub with --allow-net. Without a GitHub token, 10 searches per minute are allowed, and each find_tools uses 2 to 4 of them. Certain sensitive folders (such as ~/.ssh, ~/.aws, ~/.config, ~/.gnupg, macOS Keychain and browser data, Linux keyring and Firefox profiles, ~/.npmrc, ~/.pgpass, ~/.legwork.env, shell history and startup files, and AI client configurations) and folders containing these locations cannot be authorized. .env or secret files inside authorized folders are also read in full, so only the necessary folders should be authorized. The project is free and MIT-licensed, and the only cost is the user's own model calls.