Skip to content

MCP Server Design Patterns

Common ways to structure MCP servers: API wrappers, workflow tools, read-only data access and gateways.

Editorial team 1 min read

MCP servers range from thin wrappers to purpose-built tool sets. Choosing the right pattern affects how well models can use them.

Thin API Wrapper

Each API endpoint becomes a tool. Quick to build, but models may need many calls and must understand the API's quirks.

Task-Oriented Tools

Tools shaped around what users want to accomplish: summarise_customer_account rather than five separate lookups. Fewer calls, better results, but more design work.

Read-Only Data Access

Expose search and read operations only. Lower risk; a good starting point for sensitive systems.

Gateway or Aggregator

One server fronting several back-end systems, with shared authentication, logging and policy enforcement. Useful for organisations managing many integrations.

Code Execution

Rather than many individual tools, let the model write code against an API in a sandbox. Powerful and flexible, but needs strong isolation.

Choosing

  • Start read-only and task-oriented.
  • Add write tools deliberately, with clear descriptions and approval.
  • Keep the number of tools manageable; very large tool lists confuse models and consume context.

Versioning

Change tools carefully; hosts and prompts may depend on names and schemas.

More in MCP

All MCP guides →
MCP Guide · 1 min

MCP Architecture: Hosts, Clients and Servers

How the Model Context Protocol is structured: the host application, the clients it creates and the servers that expose capabilities.

MCP 1 min read 2 Sep 2025

MCP Guide · 2 min

MCP Tools, Resources and Prompts

The three main things an MCP server can offer, who controls each, and when to use which.

MCP 2 min read 1 Sep 2025

MCP Guide · 1 min

MCP Transports: stdio and HTTP

How MCP messages travel: standard input and output for local servers, HTTP for remote ones, and how to choose.

MCP 1 min read 31 Aug 2025

MCP Guide · 1 min

Building Your First MCP Server

A walkthrough of the steps to create a simple MCP server that exposes a tool, and how to test it.

MCP 1 min read 30 Aug 2025