AutoTool: let Cursor create and reuse missing MCP tools

I wanted to experiment with what happens if an AI agent connects to things on its own, without guidance or supervision. I was just curious to see what happens.

Experimental library for testing agent capabilities. AutoTool executes generated code and connects to services with the access you grant. It can be risky with production systems, sensitive data, real credentials, or actions that are hard to undo. Start in an isolated, disposable test environment, grant minimal access, and review generated code and actions with human oversight.

AutoTool explores one part of that: when Cursor lacks a tool, it can write a small MCP server for the missing capability. AutoTool verifies and smoke-tests it, mounts it without restarting the AutoTool server, and caches it for reuse.

The current default credential flow asks for consent. Tools declare the names of credentials they need, and AutoTool injects those values into the tool process with output redaction. The Python audit-hook guard is not a hard sandbox.

Try it with Cursor (Python 3.11+):

uv tool install autotool-mcp
autotool setup --dry-run
autotool setup

setup registers AutoTool with the supported agent apps it detects, including Cursor, and backs up JSON configuration files. Restart Cursor afterward.

A small example to try without an API key: ask Cursor to create a reusable tool that accepts a pytest output string and returns the failed test names. Have it smoke-test the tool on a sample and run it. In a fresh Cursor conversation, ask it to call that cached tool again.

The creating agent supplies the code; this does not require AutoTool’s optional model-provider configuration. Some clients may need a tool-list refresh or restart before newly mounted tools appear; run_tool is the stable dispatcher.

Code and setup docs: GitHub - varadganjoo/Autotool · GitHub

MIT licensed; available on PyPI as autotool-mcp.

If you try it in Cursor, feedback on tool creation, consent prompts, and new-tool discovery would be useful.

Disclosure: I maintain this project. This post was drafted with AI assistance using my notes and the repository.