Not long ago, enterprise software customers asked one question: "Do you have an API?" Now they ask another: "Can we use your product from inside Claude, ChatGPT or our own agent?"

A user who has handed part of their work to an AI assistant expects that assistant to find an order, check the status of a case or close a ticket. They don't want a separate integration built for every AI tool they use.

Today, the standard for that connection is MCP. But a good MCP server is more than your existing API in a new wrapper, because an agent does not work like a developer. A developer reads the docs and writes code that does the same thing every time. An agent picks a tool based on its name and description, keeps only part of each result in memory, and sometimes acts on text that another user wrote.

This article is for CTOs, product managers and engineering leads who want to connect their product to agents. It answers a few questions. What is an MCP server, and when do you need one? Where does it sit in your architecture? How should you design its tools? How do you deploy it and handle authentication? And what should you test before launch?

We write from the product builder's side. How an organization should manage access when it connects agents to its internal systems is covered on the Dropp Cortex side.

Summary for leaders

  • An MCP server exposes your software's capabilities to AI tools in a standard way. You build it once, and it works with general-purpose assistants, coding tools and internal agents.
  • An MCP server does not replace your API. It is a thin layer over the same business logic and access control. If it connects straight to the database, your product ends up with two separate access-control systems.
  • Server quality depends mostly on tool design: a few tools that match real user tasks, clear names and descriptions, short output, and error messages the model can use to fix its own mistakes.
  • The latest version of MCP is stateless, so you can deploy and scale the server like any other web service. Authentication uses OAuth 2.1, and the MCP server only checks tokens; it doesn't issue them.
  • Keep reads and writes in separate tools. Check every request on the server against the user's own permissions. And don't treat tool output as trusted input for the model.

What is an MCP server?

MCP stands for Model Context Protocol, an open protocol that connects LLM-based applications to tools and data. Anthropic introduced it in November 2024, and it is now developed under the Agentic AI Foundation, part of the Linux Foundation.

The MCP specification defines three roles:

  • Host: the application the user works in, such as Claude, a coding tool or an internal chat interface.
  • Client: the part of the host that talks to one MCP server.
  • Server: a service that exposes a system's capabilities and data. This is what you build for your product.

A server can offer three things. Tools are actions the model decides to take, such as searching orders or creating a ticket. Resources are data the host reads for context, such as a document. Prompts are ready-made templates the user picks. In most products, tools do the real work, so they are the focus of this article.

MCP's main benefit is a single, uniform connection. Before it, every product had to build a separate plugin for every AI assistant. Now one server works with any host that supports MCP. And the protocol is well past the experimental stage: according to its maintainers, the main official SDKs see close to half a billion downloads a month.

This article is based on the 2026-07-28 version of the specification, released in July 2026. The maintainers call it the largest revision of the protocol so far, and several of its changes directly affect how you design a server.

Does your product actually need an MCP server?

Before you build, be clear about who will use your product and from which application. The answer is not always an MCP server:

Situation Better fit
Customers want to use your product from inside their own assistant or agent An internet-facing MCP server, with each user signing in separately
Your team or an enterprise customer wants internal agents connected to several systems One MCP server per system, usually behind a shared gateway that controls access in one place
The AI feature lives inside your product, with one known model doing one known job Function calling in your own code is enough; MCP would be an extra layer
The product doesn't yet have a clean API or service layer Build that first; an MCP server on top of scattered logic just passes the mess to the agent
The task needs the user to see a screen or work through a complex UI A text tool isn't enough; send the user to the product, or use the MCP Apps extension to show UI inside the host

MCP doesn't replace your API. An API is for a developer who knows in advance what to call and in what order. An MCP server is for a model that decides, in the moment and based on what the user said, what to do. Both should use the same service layer.

Where an MCP server sits in your architecture

Where an MCP server sits in a product: host, client, MCP server and the product's service layer

The most important architectural decision is to keep the MCP server thin. Its job is to define tools, check tokens, turn the model's requests into service calls, and shape results so they are useful to the model. Business logic, access control, data validation and audit logging should stay where they already are for web and mobile: in the product's service layer.

The common temptation is to save time by connecting the MCP server directly to the database, or by giving it an admin key to the internal API. The result is a product with two access paths, one of which has never been tested as well as the other. And every time a rule changes in the product, someone has to remember to change it in the MCP server too.

It's the same "wall between your system and the outside world" principle we describe in Software Architecture for Managers. An agent is just a new outside consumer, one that makes decisions from text.

Decision 1: Design tools around user tasks, not your API

The most common mistake is creating one tool for every API endpoint. Anthropic's engineering team explains in its guide to writing tools for agents that this rarely works well, because agents need different things than traditional software.

Their example: a single schedule_event tool that finds a free slot and books the meeting works better than three separate tools for listing users, listing events and creating an event. Lots of similar tools confuse the model, and every tool definition takes up some of the model's memory.

Three tool design patterns for an MCP server: one tool per endpoint, task tools, and core plus discovery

In practice, we see three patterns:

  • One tool per endpoint: quick to build, but the tool list gets long and the model has to guess the right order of calls.
  • Task tools: one tool for each real user task, such as "find customer" or "issue quote". Fewer, sharper tools, as long as you know what your users actually do.
  • Core plus discovery: the most-used tools are available directly, and the rest are found and run through a search tool. The initial list stays short, but rare actions take an extra step, and the host can see less about how risky each one is.

A few practical rules:

  • Start from user tasks, not from your API. List what users ask agents to do, and design the shortest path for each task.
  • Give related tools a shared prefix, such as invoices_search and invoices_create. The MCP specification also notes that tool names are only unique within one server, so a host that combines several servers should use prefixes to avoid clashes.
  • Return things that mean something to the model. A customer's name and an order's title are more useful than a long ID. In the same guide, Anthropic reports that a short response in one example used about a third of the tokens of a detailed one. A parameter like response_format lets the model choose between short and detailed.
  • Limit output size. Support pagination and filters, and set a sensible default limit. If a result gets cut off, say in the response how to narrow the search.

Decision 2: The tool description is the agent's user interface

For each tool, the model sees only its name, its description and the structure of its input (the schema). Give that text the same care you give your product's UI.

  • Write descriptions as if for a new teammate. Say what the tool does, what permission it needs, what it changes and what its limits are. Explain any terms that are specific to your product.
  • Define inputs precisely. Mark required fields, list allowed values and use clear names, such as customer_id instead of customer.
  • Return structured output. When you also define the output's structure (outputSchema), the client can check that results are correct. For older hosts, return the same data as text too.
  • Keep the two kinds of error apart. The tools specification separates protocol errors, such as an unknown tool, from errors that happen while a tool runs. An execution error should include text the model can use to correct itself. "Delivery date must be in the future; today is 2026-11-24" is far more useful than "400 Bad Request".

Decision 3: Separate reads from writes

The MCP specification recommends always keeping a human in the loop who can stop a tool from running. That is why hosts ask users to confirm sensitive actions. But whether that confirmation means anything depends on how you design your tools.

A tool called cancel_order is clear: the user knows what they're approving. A tool called execute that reads data one time and deletes data the next forces the user to approve everything or nothing.

  • Declare what each tool does. Hints such as readOnlyHint and destructiveHint tell the host which tools are safe and which need confirmation. But the specification is clear: hosts only trust these hints from trusted servers. A hint is guidance; the real control has to live on the server.
  • Make irreversible actions two-step. For example, the first tool returns a preview of the change with an ID, and the second applies it using that ID. In the latest version, a server can also pause partway through a call to ask the user for confirmation or more information.
  • Make write tools safe to repeat. Under 2026-07-28, if a connection drops partway through a response, the client has to send the request again. A tool that creates two invoices when it runs twice will eventually do exactly that. A unique key per request, or a duplicate check on the server, solves the problem.

This is the principle we called "AI suggests, code decides" in the architecture article. The model can ask for something, but code enforces the business rules and the limits of its authority.

Decision 4: Where and how to run the server

Two ways to connect. An MCP server either runs on the user's own machine (stdio) or as a service on the network (Streamable HTTP). The first suits command-line and developer tools that work on the user's computer. For web products and SaaS, the second is the natural choice. The older HTTP+SSE method has been formally deprecated.

A stateless protocol. This is the biggest change in the new version. Previously, the client and server started with a handshake and set up a session. Now that step is gone, and every request carries the information it needs. According to the release announcement, any request can be handled by any copy of the server behind a simple load balancer. For your infrastructure team, that means running and scaling an MCP server like any other stateless web service.

If a task needs to remember something across requests, such as a shopping cart or a multi-step process, the server creates an ID and the model passes it back in later requests. Two things to keep in mind. Having the ID doesn't grant access, so the server must check on every request that the ID belongs to that user. And state how long the ID stays valid in the tool description, so the model knows.

What helps your operations team. In the new version, the tool name also appears in the headers of each HTTP request. Gateways, firewalls and rate limiters can therefore act on the tool name without reading the request body. Tool lists can be cached, and tools should always come back in the same order. Long-running work can be tracked with the Tasks extension. For logging and tracing, the specification recommends OpenTelemetry.

Where to host it. One point is often discovered late: some hosts connect to your server from their own servers, not from the user's computer. For Claude's custom connectors, for example, the MCP server must be reachable over the public internet from Anthropic's IP addresses. A server behind a VPN or on a private network won't connect. If your main users are inside an organization, keep the host inside too, such as an internal chat interface or an agent running on your own servers. Then the MCP server doesn't need to be open to the internet at all.

Decision 5: Authentication and access

When the server is on the network and returns user data, the MCP authorization specification is clear: the MCP server does not issue tokens. Your identity service issues them, and the MCP server only checks them. The whole flow is based on OAuth 2.1.

  • Finding the sign-in flow. The server publishes a standard document (RFC 9728) that names the identity service it trusts, and the client finds the sign-in flow from there. You can use the same identity service your web and mobile apps already use.
  • Client registration. In the new version, Dynamic Client Registration (DCR) is deprecated in favor of Client ID Metadata Documents. DCR still works for now but will be removed later.
  • Don't pass the user's token along. The MCP security best practices say a server must not accept a token that wasn't issued for it, and must not forward a user's token to another API. If your MCP server needs another service, it should get its own token for it.
  • The user's own access, nothing more. Check every request in the service layer against that user's identity. The specification even allows the tool list to depend on the user's permissions, so someone who can't delete never sees the delete tool.
  • Grant access step by step. Start with read-only access, and have the server ask for more when a sensitive action comes up. All-purpose scopes such as * or full-access are on the security guide's list of common mistakes.

A fixed API key also works for internal servers, but it erases the identity of individual users. Your logs will show that "the MCP server" did something, not who did it.

Security: tool output is also model input

Every piece of text your tools return goes straight to the model: ticket titles, customer notes, file names, product descriptions. Some of that text was written by other users, and it may contain hidden instructions aimed at the model. This is called prompt injection. An MCP server can't remove the risk entirely, but it can make it smaller:

  • Return only the fields the task needs, and don't return users' free text without a reason.
  • Keep write tools behind user confirmation, so text that arrived as data doesn't turn directly into action.
  • Put limits on each request: a maximum number of records, a maximum amount, a date range.

The tools specification requires four things from every server: check all inputs, apply access control properly, limit how often tools can be called, and clean up outputs. Add logging to that list: who ran which tool, from which host, with what input, and what happened. If you build a server that runs on the user's machine, remember that it runs with all of that user's permissions and must not run arbitrary commands.

What policy an organization should set for agent access, logging and auditing is the subject of AI governance at Dropp Cortex.

Test before you launch

An MCP server needs unit and integration tests like any other service. The official MCP Inspector tool is also handy for watching messages and running tools by hand. But the most important test is different: does the model do the right thing with these tools?

Anthropic's guide suggests defining several real, multi-step tasks whose results you can check. Give them to a simple agent and see how often it gets them right, how many tool calls it makes, how many tokens it uses and where it fails. Reading the full conversations is usually the fastest way to spot an unclear description or a tool you don't need.

Two more tips: test with more than one host and more than one model, because each one reads descriptions a little differently. And rerun the same tests after every change to a tool's name or description.

Maintenance: tools are a public contract

Once customers have built agents and prompts on your tools, each tool's name and structure works like a contract. Renaming a tool or removing a field quietly breaks their work. Add the new tool next to the old one, say in the old tool's description that it is being retired, and give a removal date. The MCP project itself now gives at least twelve months' notice before removing a feature.

For each tool, track how often it runs, its error rate, its response time and its output size. A tool that keeps failing on its input usually has a bad description, not bad users. And keep an eye on new versions of the specification: 2026-07-28 was a breaking change for servers that relied on sessions.

Dropp's experience: one gateway for several MCP servers

For our team's internal tools, we didn't build a new MCP server. We connected the ready-made servers of three systems to our AI tools through MetaMCP, running on our own infrastructure: Directus, which holds this blog's content; Figma, for design files; and Vikunja, for task management. MetaMCP is an open-source tool that groups several MCP servers, puts them all behind one authenticated address, and lets us choose which tools are visible.

MCP setup at Dropp: hosts, the MetaMCP gateway, and the Directus, Figma and Vikunja servers

Using servers that others have built teaches you a lot about building your own. These three have very different designs:

  • Directus has a few general tools, each driven by an action parameter. Its items tool, for example, reads data and also creates, updates and deletes it. Another tool returns guidance the Directus administrator has written for AI use. Directus has included a built-in MCP server since version 11.13.
  • Vikunja offers about 25 frequently used tools directly, and 57 more actions through two tools, find_action and do_action. The search tool only shows actions the token is allowed to use.
  • Figma has just one tool. It only reads data, and its inputs are tightly defined.

Comparing the three taught us three lessons:

1. An all-in-one tool makes confirmation meaningless. When reading and deleting live in the same tool, the host can't allow reads freely and ask for confirmation only on deletes. The description of Directus's items tool asks the model to get the user's confirmation before any delete, but that's only a request to the model, not a control. The real control is Directus's own roles and permissions, enforced on the server. If you're building your own server, give risky actions their own tools.

2. Discovery frees up the model's memory but hides risk. In Vikunja, do_action is a single door to 57 actions, and some of them are deletions, such as deleting a team or a task attachment. The host's confirmation prompt only sees "do_action" and its inputs. If you use this pattern, keep destructive actions outside it as direct tools.

3. Good descriptions carry operational detail. Vikunja's tool descriptions say what permission each action needs, what else it changes, whether it's safe to run twice, and which error comes back in which case. For example, one notes that moving a task into the "done" column marks it as done. That is exactly what a model needs to choose correctly, and it's often missing even from API docs written for people.

A gateway has one more benefit: every connection is defined and restricted in one place, and tool names reach the model with the server's prefix, such as dropp-blog-directus__items. That is exactly how the specification suggests avoiding name clashes.

Checklist for a launch-ready MCP server

  1. Is it clear who will use the server, from which hosts, and can those hosts reach it?
  2. Is the MCP server only a connection layer, with business logic and access control kept in the product's service layer?
  3. Are tools designed around real user tasks rather than copied one-to-one from the API?
  4. Do tool names have prefixes, and does each description say what permission the tool needs, what it changes and what its limits are?
  5. Are inputs precisely defined, and is output structured and paginated?
  6. Do error messages tell the model what to fix and how?
  7. Are reads and writes in separate tools, with each tool's behavior declared?
  8. Are write tools safe to run twice, and are irreversible actions two-step?
  9. Is the server stateless, with every ID checked against the user's identity on each request?
  10. Does authentication use OAuth 2.1, are tokens issued for others rejected, and is the user's token never forwarded to another service?
  11. Are requests rate-limited, and is every request logged with the user's identity and input?
  12. Do you have a set of real tasks to test with several hosts and models, and do you rerun it after every change?

Conclusion

Building an MCP server that merely works is not hard with today's SDKs. The hard part is building one that agents use correctly and that doesn't get around your product's security. To do that, keep the server as a thin layer over your service layer, and design tools around real user tasks. Treat tool descriptions as seriously as your UI, and keep reads and writes apart. Get authentication right with OAuth and the user's own permissions. And before launch, test with real tasks that the model does what the user actually asked.

If you want to connect your product to agents, or add agents and AI assistants to your software, Dropp's engineering team can work with you from tool design and integration architecture to authentication, testing and deployment. See AI Agents and RAG for details.

Frequently asked questions

What is an MCP server?

An MCP server is a service that makes a piece of software's capabilities and data available to AI tools through the Model Context Protocol. These capabilities are mostly offered as "tools" that the model uses based on the user's request, such as searching orders or creating a ticket.

How is an MCP server different from an API?

An API is for a developer who knows in advance what to call. An MCP server is for a model that decides in the moment which tool to use. That's why MCP tools should be designed around complete user tasks, with descriptions and error messages the model can understand. An MCP server is usually built on the same layer the API uses.

What language should I build an MCP server in?

The same language as the rest of your product. The official TypeScript, Python, Go and C# SDKs have the strongest support, and official SDKs also exist for languages such as Rust and Ruby. More important than the language is connecting the server to the same service layer and access control as the product.

Does an MCP server work with open-source and local models?

Yes. MCP isn't tied to any particular model. What matters is whether the host or agent framework you use supports MCP. An organization that doesn't want data leaving its network can run a local model, an internal host and an internal MCP server together.

Does an MCP server have to be on the public internet?

It depends on the host. Hosts such as Claude's custom connectors connect to your server from their own servers, so your server has to be reachable on the internet. If the host runs inside your own network, the MCP server can stay internal.

What is the biggest security risk with an MCP server?

Two risks come up most often. The first is a server with more access than the user, for example one connected to the API with an admin key. The second is text from other users' data that pushes the model into an unintended action. The defenses are checking every request against the user's own identity, keeping write tools behind user confirmation, and having each tool return only what is needed.

SHARE YOUR NEED — WE'LL REACH OUT ASAP.

WhatsApp

Message us
Success
Message sent successfully. We will contact you soon.
Error
Error occurred. Please try again later.
Error