The MCP starter kit: give your app a menu an AI can order from
The short version
MCP is a standard way of telling an AI what your app can do. You write a list: here is a thing my app can do, here is what it needs from you, here is what it gives back. Most of the big AI platforms can read that list, so once it exists they can use your app without anyone opening it.
I built one for Settl, the app I make for splitting bills with friends. Now I type "dinner at Pizza Hut, forty-eight, split with Jack, I paid" into Claude and it is logged and split. The work is not the plumbing, which is an afternoon. The work is deciding which four or five things your app does that are worth handing to an AI, and describing them well enough that it picks the right one.
Copy these prompts
Paste them into Claude Code (or any AI that can see your project), in this order. The first one is the one that decides whether the whole thing works, so do not skip ahead to the code.
1. Write the menu before you write any code
Read my codebase and act as if you were an AI assistant that had to operate this app on a user's behalf, with no screen and no buttons. List the 5 things a user actually wants done, in their words, not mine. For each one, tell me exactly what information you would need from the user before you could do it, and what you would want back to confirm it worked. Rank them by how often a real user would ask. Do not write any code yet.
2. Build the smallest server that actually runs
Build me an MCP server for this app that exposes only the top 3 actions from that list. Use the official MCP SDK for my language, run it locally over stdio first, and keep every tool a thin wrapper over code I already have rather than new logic. Then show me the exact steps to connect it to Claude and the one sentence I should type to prove each tool works.
3. Make the AI's first attempt fail safely
Go through each tool and assume the AI will call it with the wrong arguments, a name that does not exist, or a duplicate of something it already did a second ago. For each tool tell me what happens today, and make the failure return a plain sentence the model can act on instead of a stack trace. Then list which of these tools should never run without asking the user first, and why.
What an MCP server actually is
Strip the acronym away and it is a small program that answers one question: what can this app do? It publishes a list of tools. Each tool has a name, a description written for a reader rather than a compiler, and a schema saying which arguments it takes. The AI reads the list, picks one, fills in the arguments from what the person said, and calls it. Your program does the work and hands back a result.
That is the whole shape. A tool definition is about as much code as a form field:
{
name: "log_expense",
description:
"Record a shared expense and split it between people. Use this when the " +
"user mentions paying for something with or for other people. Amounts are " +
"in the group's currency unless the user names one.",
inputSchema: {
type: "object",
properties: {
description: { type: "string", description: "What it was for, eg 'dinner at Pizza Hut'" },
amount: { type: "number", description: "Total paid, not the per-person share" },
paidBy: { type: "string", description: "Who paid. Default to the current user." },
splitWith: { type: "array", items: { type: "string" } },
},
required: ["description", "amount"],
},
}
Servers can also expose resources (read-only data the model can pull in, like a group's balances) and prompts (canned instructions your app supplies). Start with tools. Resources are the second thing you add, once you notice the model asking for context it cannot get.
You have two ways to run it. Stdio is a local process on the user's machine, which is how you should build and test. HTTP is a hosted server other people's accounts can connect to, which is what you ship. Build the first, then move to the second without changing your tool code.
The five rules that decide whether it works
- Name the tools after intentions, not after your code.
log_expensegets picked correctly.createTransactionRecordgets picked when the model is guessing. The name is the first thing it reads and often the only thing it reads. - Descriptions are prompts, so write them for a reader. Say when to use it, not just what it does, and put the ambiguity in there: "amounts are the total paid, not the per-person share" prevents a whole class of wrong calls. Every tool description is a piece of your product's copy now.
- Fewer tools beat more tools. Five good ones outperform thirty, because thirty means the model spends its attention choosing instead of doing. If you have thirty things your app can do, the AI wants the five people ask for out loud.
- Return sentences, not payloads. "Logged. 48 split two ways, Jack owes you 24." lets the model confirm to the user in their own words. A raw object makes it guess what happened, and it guesses out loud.
- Errors are instructions. "No group called 'Jack'. Existing groups: Flatmates, Bali Trip." is a tool result the model can recover from by itself. A 500 is a dead end that the user watches it walk into.
Auth without handing out your keys
The first question everyone asks is whether this means an AI now has the keys to their account. It does not have to.
Your server holds the credential, not the model. The model can only call the tools you listed, with the arguments the schema allows, and it never sees a token. For a local stdio server that means reading the user's own key from their environment. For a hosted one it means the user connects their account once and your server exchanges that for a session, exactly like any other client of your app would.
Then split your tools by consequence. Reading a balance is safe. Anything that moves money, deletes, or messages another human should be flagged so the client asks the user before it runs. Do that at the design stage, because "which of these should need a confirmation" is a question you can answer honestly on day one and cannot answer honestly after you have thirty tools.
How to test it
Run the MCP Inspector against your server before you connect it to anything. It lists your tools, lets you call them by hand with real arguments, and shows exactly what comes back. Most bugs at this stage are not bugs in your app, they are a schema that says a field is optional when your code needs it.
Then connect it to a real client and try the sentence a real person would say, not the one you designed for. "Dinner at Pizza Hut, forty-eight, split with Jack, I paid" is the test. If it calls the wrong tool, the fix is almost always the description, not the code.
Steal this for your app
- Your app already has the functions. An MCP server is a menu written on top of them, not a rewrite. If you find yourself writing new business logic, you have gone past the line.
- Ship read-only tools first. They are useless to break and they teach you how the model phrases things, which is what you need before you let it write anything.
- Watch which tool gets called when the person is vague. That is your real product surface, and it is usually not the feature you spent the most time on.
- The bet underneath all of this: assistants are becoming the place people start, and everything else plugs into them. Being on that list early costs an afternoon. Being absent from it costs you the default.
Run this on your codebase
Paste this into a Claude session in your repo:
Audit this codebase for MCP readiness. Report before changing anything:
1. List the functions that already do a complete user-facing job, with no UI code in them. These are my candidate tools.
2. For each, name it the way a user would ask for it out loud, and flag any that would need new logic rather than a wrapper.
3. Which of these change data, spend money, or notify another person? Those need a confirmation step.
4. Where does authentication live today, and what would a per-user credential look like for a hosted server?
5. Name the 3 I should ship first and the one sentence I should type to test each.