Lorenzo Dal Col
← Blog

Why I am not a fan of MCPs

An MCP server provides a coding agent with a selection of tools designed by someone else. In most cases I'd rather provide the agent with the CLI and REST API for a service and let it figure out how to use these to answer questions. This uses more tokens but allows it to ask questions the author of the server didn't consider, which are usually the useful ones.

Example: counting deploys

My sites are hosted on Netlify, and each production deploy costs a number of credits deducted from a monthly allowance. I wanted to know how many of these were remaining before deploying. The CLI was already installed. There's a wrapper for the REST API (netlify api) which gave the credits and billing period for the account, and a list of all deploys with their status and build time. There is no usage command, so the agent looked in the CLI config file for an account token and made guesses at around 20 other REST API endpoints.

Most 404'd; one of the endpoints that responded gave the bandwidth used in the billing period. The credit balance itself isn't available via the API but is shown on the web dashboard, so the agent wrote a small script that calculates it from the deploy list and the bandwidth. I run it before deploying.

I asked the agent to try the official Netlify MCP server for this question. It provides 9 tools. The relevant two both require a deploy ID you already know, so it can't give you a list of deploys, and there's no tool for usage. I hoped get-team would provide the credits, as it provides other info about the account. It provides 8 pieces of info, but not the credits or billing period.

Three nested boxes. The Netlify dashboard, reached with a browser, holds the credit balance. Inside it the REST API, reached with the CLI and REST, holds the deploy list and bandwidth. Inside that the MCP server, with 9 tools and 20 operations, holds neither.

Where the CLI and REST are better

The first is the example above: anything the author of the server hasn't deemed useful to wrap. This way the agent has access to the full API, including things not shown on the CLI, and if the information isn't directly available it can derive it from other info (as it did with the balance above).

The second is the cost of the tool itself. Definitions of tools provided by an MCP server are passed to the model at the start of any session, regardless of whether the session involves Netlify. In Netlify's case this is around 13k chars. Some clients defer loading them until they're used; not all do. A CLI is free until the agent runs --help.

Where an MCP is better

Usually this is for software with no API but a GUI or web interface. The example of the balance above exists only in the Netlify web interface. The agent can navigate to this, but at the cost of a screen full of HTML or a screenshot for each step of the way, and it's many steps to get there. In this case the token argument is reversed, and a server providing tools around key functions of the software is far more economical. Netlify's server doesn't provide access to the balance, but access like that is the point of an MCP server.

The second case is restrictions on what the agent can do. The token the agent used for the REST calls is my login to the CLI. There are 180 functions listed under netlify api, including deleteSite and cancelAccount.

Netlify's server provides separate 'reader' and 'updater' tools and provides no means to delete a site. I'd restrict an agent operating independently to the reader tools. You can set similar restrictions on using the CLI, but the agent can instead access the REST API, as it did in the example above.

I thought there was a further case but can't see one. Netlify's server provides developer notes on forms, including info about a file the deletion of which previously broke a build of a site I manage. This info is also in the general documentation and in the build error message, which is where the agent found the solution.

Side by side

MCP server CLI and REST
What the agent can ask What the author wrapped The whole API, undocumented endpoints included
Cost before it's used Tool definitions in every session Nothing until --help
Apps with only a GUI or web UI A few tools for the app's actions Screenshots or HTML at every step
Can be made read-only Yes, by allowing only reader tools Not really; the token can do anything

This all assumes an agent with a shell, capable enough to read --help and make some assumptions about a REST API. In a chat app without a shell the MCP server is the only interface available to the agent, and a smaller agent would likely be far more useful with 9 discrete tools than with 180 functions.

I help teams set up AI-assisted engineering workflows, MCP tooling included. See services.

Subscribe to my newsletter

Receive new posts by email: occasional notes on GPU conformance, mobile performance, and AI in software engineering. Unsubscribe anytime.

Subscribe