Skip to content

Commit 6579a2f

Browse files
committed
Move content to overview, link to workers-mcp instead
1 parent cb8010d commit 6579a2f

File tree

1 file changed

+34
-1
lines changed
  • src/content/docs/agents/model-context-protocol/mcp-server

1 file changed

+34
-1
lines changed

src/content/docs/agents/model-context-protocol/mcp-server/index.mdx

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,38 @@ pcx_content_type: navigation
44
sidebar:
55
order: 1
66
group:
7-
hideIndex: true
7+
hideIndex: false
88
---
9+
10+
# Deploy an MCP Server to Cloudflare
11+
12+
You can build and deploy MCP servers on Cloudflare, using the [`workers-mcp` package](https://github.com/cloudflare/workers-mcp), which provides an SDK for [authorization](/agents/model-context-protocol/mcp-server/authorization/), [transport](/agents/model-context-protocol/mcp-server/transport/), and [tool definition and discovery](/agents/model-context-protocol/mcp-server/tools/).
13+
14+
This guide and the accompanying [examples](/agents/model-context-protocol/mcp-server/examples/) will help you get started.
15+
16+
### What is the Model Context Protocol (MCP)?
17+
18+
[Model Context Protocol (MCP)](https://modelcontextprotocol.io) is an open standard that connects AI systems with external applications. Think of MCP like a USB-C port for AI applications. Just as USB-C provides a standardized way to connect your devices to various accessories, MCP provides a standardized way to connect AI agents to different services.
19+
20+
#### MCP Terminology
21+
22+
- **MCP Hosts**: AI assistants (like [Claude](http://claude.ai) or [Cursor](http://cursor.com)), AI agents, or applications that need to access external capabilities.
23+
- **MCP Clients**: Clients embedded within the MCP hosts that connect to MCP servers and invoke tools. Each MCP client instance has a single connection to an MCP server.
24+
- **MCP Servers**: Applications that expose [tools](/agents/model-context-protocol/mcp-server/tools/), [prompts](https://modelcontextprotocol.io/docs/concepts/prompts), and [resources](https://modelcontextprotocol.io/docs/concepts/resources) that MCP clients can use.
25+
26+
#### Remote vs. local MCP connections
27+
28+
The MCP standard supports two modes of operation:
29+
30+
- **Remote MCP connections**: MCP clients connect to MCP servers over the Internet, establishing a [long-lived connection using HTTP and Server-Sent Events (SSE)](/agents/model-context-protocol/mcp-server/transport/), and authorizing the MCP client access to resources on the user's account using [OAuth](/agents/model-context-protocol/mcp-server/authorization/).
31+
- **Local MCP connections**: MCP clients connect to MCP servers on the same machine, using [stdio](https://spec.modelcontextprotocol.io/specification/draft/basic/transports/#stdio) as a local transport method.
32+
33+
Cloudflare's MCP Server SDK, is designed to support remote MCP connections. Remote MCP connections allow MCP clients that run in web browsers, mobile apps, and other environments outside of the end-user's machine to connect to your MCP server, such as [Claude.ai](https://www.anthropic.com/claude), and other AI agents.
34+
35+
### Why deploy your MCP server to Cloudflare?
36+
37+
- Define [tools](/agents/model-context-protocol/mcp-server/tools/) by just writing TypeScript methods, in the [same way you write RPC methods in Workers and Durable Objects](/workers/runtime-apis/rpc/).
38+
- Authorization is [built-in](/agents/model-context-protocol/mcp-server/authorization/). The MCP Server SDK handles the hard parts of the OAuth flow for you.
39+
- Transport over HTTP with Server-Sent Events (SSE) is [built-in](/agents/model-context-protocol/mcp-server/transport/), with automatic hibernation of idle connections to reduce costs
40+
- You can create stateful MCP Servers with the [Agents SDK](/agents/)
41+
- Your MCP server can be called by the [Agents SDK](/agents/), which is an MCP client

0 commit comments

Comments
 (0)