In short
MCP (Model Context Protocol) is an open protocol that lets an AI application, such as Claude, ChatGPT or a code editor, call tools and read data exposed by a third-party service. An MCP server is only useful if your users want to act on your service from an assistant: check their orders, create a ticket, query technical documentation. Once this check is done, you have a reasoned decision (no server, a solution provided by your platform, or an in-house server) and, where relevant, a tested read-only prototype. This topic is experimental and the protocol is evolving quickly.
Why it matters
Assistants are becoming work interfaces. A Claude or ChatGPT user can add a connector to a service, then ask “list my jobs for tomorrow” or “create a ticket for this bug”. The connector is an MCP server: it declares tools (callable functions with parameters described in JSON Schema), resources (data to read) and prompts (request templates), and the assistant chooses which ones to use.
The protocol is based on JSON-RPC and two standard transports: stdio, for a server launched locally by the application, and Streamable HTTP, for a remote server reachable at a URL. The second one is what matters for a website or online software. The specification evolves through dated revisions; the most recent at the time of writing is revision 2026-07-28, which makes requests stateless. Clients support revisions with a lag: check what your target assistants accept.
Building an MCP server has a real cost: development, authentication, maintenance at the pace of the protocol, and above all a new attack surface, since a language model decides which calls to make. For an editorial site or a brochure site, this cost brings nothing back: assistants already read your public pages. For online software whose customers work in an assistant, it can become a selling point. Hence the value of evaluating before building.
What it improves
- Use of your service from assistants Your customers act without leaving Claude, ChatGPT or their code editor. A real effect only if they actually need it.
- Reliability of actions A typed tool is more reliable than an agent navigating your screens.
- Commercial differentiation For B2B software, having a connector can carry weight in an evaluation.
- Visibility in AI answers No demonstrated effect. An MCP server is not read by the assistants' search engines; it serves the users who connected it.
- Costs Going up. Development, hosting, support, security monitoring.
How to check
If you already have an MCP server, test it with MCP Inspector, the official testing tool:
npx @modelcontextprotocol/inspector@latest --cli https://example.com/mcp --transport http --method tools/list
Compliant result: the list of tools, each with an explicit name, a description that says when to use it and a complete input schema. Without a token, a protected server must respond 401 with a WWW-Authenticate header pointing to its /.well-known/oauth-protected-resource document.
If you do not have one, check three things in an hour:
- Demand: search for “MCP”, “Claude”, “ChatGPT”, “connector” in support tickets, sales requests and your users' forums over the last six months.
- What your platform already offers: Shopify, WordPress and others already provide MCP building blocks (see the implementation section). You may have nothing to code.
- The API: an MCP server almost always relies on an API. Without a documented API, start by documenting existing public APIs (opens in a new tab).
How to implement
Step 1 — List the candidate use cases
List what your users would like to do from an assistant, with examples of real requests:
| Use case | Sample request | Read or write | Personal data | Observed demand |
|---|---|---|---|---|
| View the schedule | “What jobs do I have tomorrow?” | Read | Yes (customers) | 12 tickets in 6 months |
| Create a job | “Schedule a maintenance visit at Dupont's on Thursday at 9 a.m.” | Write | Yes | 3 sales requests |
| Search the documentation | “How do I export invoices to CSV?” | Public read | No | Frequent on the forum |
| Cancel a job | “Cancel the 2 p.m. appointment” | Sensitive write | Yes | None |
Step 2 — Decide with a grid
| Situation | Recommended decision |
|---|---|
| Editorial site, brochure site, blog, local business | No MCP server. Take care of your public pages and AI crawler access (opens in a new tab) |
| Store on a platform that already provides AI channels | Use the platform's solution. See evaluate agentic commerce protocols (opens in a new tab) |
| Online software with an API, customers who use assistants at work | Read-only prototype, then limited write access |
| Large technical documentation | Read-only documentation search server, or simply well-crafted publication of the documentation |
| No API, no observed demand | Not now. Reassess in six months |
Stop criteria: no observed demand, no technical owner to maintain the server, no way to set up proper OAuth authentication for private data.
Step 3 — Design a few well-described tools
- Start from the use case, not the API: three to ten tools that match tasks (
chercher_interventions,obtenir_intervention), not one tool per endpoint. - A description that says when to use the tool, what it returns and its limits, as for an API operation (opens in a new tab).
- Strict input schemas: types, enums, bounds, required fields.
- Actionable errors: the specification distinguishes protocol errors from execution errors returned with
isError: trueand a text that lets the model correct itself. - Honest annotations:
readOnlyHint,destructiveHint,idempotentHintandopenWorldHinttell the host whether the tool modifies or destroys data. They are hints: the specification asks clients to treat them as untrusted unless the server is trusted, and your server must enforce its own controls. - Start read-only. Write tools come next, with confirmation for sensitive actions (opens in a new tab).
Step 4 — Secure before opening up
For private data, the remote server must follow the authorization part of the specification: OAuth 2.1, a protected resource metadata document (RFC 9728), tokens issued for your server and verified on every request, minimal scopes. The details are in check authentication and authorization (opens in a new tab). Add a rate limit per token and log every tool call. Model-specific risks, such as prompt injection through data returned by your tools, are covered in prevent prompt injection (opens in a new tab).
Step 5 — Test in the target assistants
- Test the server with MCP Inspector (command in the “How to check” section).
- Connect it in the assistants your customers use. In Claude: connectors directory, “Add”, then “Add custom connector”, the server's name and URL; on Team and Enterprise plans, an organization owner adds custom connectors. In ChatGPT: the Plugins page, the “+” button, then “Add custom MCP server”. These labels change: refer to each vendor's documentation.
- Replay your sample requests from step 1 and note, for each one, the tool chosen, the parameters sent and the result.
- Then measure actual usage in your logs: number of connected users, calls per tool, error rate. With no usage after three months, do not develop any further.
Laravel
Versions Laravel 12 and 13, laravel/mcp package.
The official laravel/mcp package creates MCP servers inside the application:
composer require laravel/mcp
php artisan vendor:publish --tag=ai-routes
php artisan make:mcp-server PlanifiaServer
php artisan make:mcp-tool ChercherInterventionsTool
A read-only tool, in app/Mcp/Tools/ChercherInterventionsTool.php:
<?php
namespace App\Mcp\Tools;
use App\Models\Intervention;
use Illuminate\Contracts\JsonSchema\JsonSchema;
use Laravel\Mcp\Request;
use Laravel\Mcp\Response;
use Laravel\Mcp\Server\Attributes\Description;
use Laravel\Mcp\Server\Tool;
use Laravel\Mcp\Server\Tools\Annotations\IsReadOnly;
#[Description('Lists the signed-in user\'s jobs for a given date. Use it before any schedule change.')]
#[IsReadOnly]
class ChercherInterventionsTool extends Tool
{
public function handle(Request $request): Response
{
$interventions = Intervention::query()
->whereBelongsTo($request->user(), 'technicien')
->whereDate('debut', $request->get('date'))
->get(['id', 'debut', 'type', 'statut']);
return Response::text($interventions->toJson());
}
public function schema(JsonSchema $schema): array
{
return [
'date' => $schema->string()
->description('Date in YYYY-MM-DD format.')
->required(),
];
}
}
Declare the tool in the server's $tools property, then register the server in routes/ai.php, protected by Passport (OAuth 2.1) and rate-limited:
use App\Mcp\Servers\PlanifiaServer;
use Laravel\Mcp\Facades\Mcp;
Mcp::oauthRoutes();
Mcp::web('/mcp/planifia', PlanifiaServer::class)
->middleware(['auth:api', 'throttle:mcp']);
The Laravel documentation points out that Mcp::oauthRoutes() exposes a public client registration route: rate-limit it as well.
Next.js
Versions Next.js 15 and 16 (App Router), mcp-handler 2.
The mcp-handler package, published by Vercel, mounts an MCP server in an application route (Node.js 22 or later):
npm i mcp-handler@2 @modelcontextprotocol/server@2 zod@4
File app/api/mcp/route.ts:
import { createMcpHandler } from 'mcp-handler';
import { z } from 'zod';
const handler = createMcpHandler((server) => {
server.registerTool(
'chercher_article_aide',
{
description: 'Searches the public help center and returns the 5 most relevant articles with their URL.',
inputSchema: z.object({ question: z.string().min(3).max(200) }),
},
async ({ question }) => {
const url = `https://example.com/api/aide/recherche?q=${encodeURIComponent(question)}`;
const resultats = await fetch(url).then((reponse) => reponse.json());
return { content: [{ type: 'text', text: JSON.stringify(resultats) }] };
},
);
});
export { handler as GET, handler as POST };
Clients connect to /api/mcp over Streamable HTTP. For private data, wrap the handler with withMcpAuth and publish the /.well-known/oauth-protected-resource document, as described in Vercel's documentation.
Cloudflare
Versions Cloudflare Workers, November 2026.
Cloudflare provides a remote MCP server template on Workers, exposed by default at /mcp:
npm create cloudflare@latest -- remote-mcp-server-authless --template=cloudflare/ai/demos/remote-mcp-authless
This template has no authentication: keep it for public data, or put the server behind an authorization server built with Workers OAuth Provider, as Cloudflare's guide explains.
WordPress
Versions WordPress 6.9 and later.
WordPress 6.9 introduced the Abilities API, which lets plugins declare “abilities” with input and output schemas and a permission check. The official MCP Adapter plugin, published by the WordPress project, turns these abilities into MCP tools and exposes a server at /wp-json/mcp/mcp-adapter-default-server. Abilities are private by default: only those whose meta.mcp.public (or meta.public) metadata is true are exposed.
Before enabling anything, list the abilities declared by your plugins, expose only read abilities, and check that their permission_callback properly checks the user's permissions. The transport's authentication mode is set in the plugin: follow its “Transport Permissions” guide.
Shopify
Versions Shopify stores, November 2026.
You do not need to build an MCP server. Shopify provides hosted MCP servers for product discovery (Storefront Catalog for one store, Global Catalog across all merchants, Shop MCP for the checkout journey), aimed at agent developers. On the merchant side, what matters is catalog quality and the AI channel settings in Sales channels > Agentic: see evaluate agentic commerce protocols (opens in a new tab).
Common mistakes
- Building without demand: an MCP server nobody connects costs maintenance and security effort and brings nothing back.
- One tool per endpoint: fifty poorly distinguished tools make the model pick the wrong one.
- Starting with write access: tools that modify, charge or delete require confirmation, logging and fine-grained permissions. Start read-only.
- Relying on annotations:
readOnlyHintprotects nothing; only server-side access control does. - A server with no authentication on private data, or a single API token shared by all users.
- Returning unfiltered third-party content: customer reviews, emails or web pages returned as is by a tool can contain malicious instructions.
- Believing that MCP improves visibility in assistants' answers: it serves usage, not citation.
Frequently asked questions
Does an MCP server improve my site's visibility in ChatGPT or Claude?
No, there is no demonstrated effect on visibility. An MCP server is not crawled by the assistants' search engines: it only serves the users who connected it to act on your service. To be cited in answers, rely on public pages that are accessible to AI crawlers, clear and up to date. An MCP server is a service to customers, not an SEO lever.
What is the difference between an API and an MCP server?
An API exposes your service's operations to any program. An MCP server exposes a selection of them, as tools described for a language model, through a common protocol that Claude, ChatGPT, code editors and other applications can use without a specific integration. The MCP server generally relies on the existing API and does not replace it.
Does a WordPress site need an MCP server?
Rarely. For an editorial or brochure site, assistants already read the public pages and an MCP server adds nothing. It becomes useful if authenticated users need to act on the site from an assistant, for example to manage content or bookings. WordPress 6.9 and the MCP Adapter plugin make this possible, provided you only expose controlled, protected abilities.
Is an MCP server a security risk?
Yes, it adds an attack surface, because a language model decides which calls to make based on instructions that can be manipulated. Limit the risk with OAuth authentication, minimal scopes, read-only tools to begin with, access control checked on every call, a rate limit, logging, and user confirmation for any sensitive action.
Resources
- Model Context Protocol: specificationmodelcontextprotocol.io
- Model Context Protocol: authorization (revision 2026-07-28)modelcontextprotocol.io
- Model Context Protocol: toolsmodelcontextprotocol.io
- Laravel: Laravel MCP documentationlaravel.com
- Vercel: deploying an MCP serververcel.com
- Cloudflare: building a remote MCP serverdevelopers.cloudflare.com
- WordPress: MCP Adapter and Abilities APIgithub.com
- Shopify: tools for agentsshopify.dev
Updated on
Topic checklist (PDF)