You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fern/products/docs/pages/ai/mcp-server.mdx
+33-8Lines changed: 33 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,18 +3,43 @@ title: MCP server for your site
3
3
description: Learn how to use the Model Context Protocol (MCP) to integrate AI capabilities with your Fern documentation
4
4
---
5
5
6
-
<Markdownsrc="/snippets/wip-callout.mdx" />
7
-
8
6
[Model Context Protocol (MCP)](https://modelcontextprotocol.io) is an open standard by Anthropic that enables AI applications to connect with external data sources and tools.
9
7
10
-
Fern can build a production-ready MCP server for your documentation site. This enables developers using AI clients (like Claude Desktop, Cursor, and Windsurf) to get instant answers about your product directly within their development environment.
8
+
Fern automatically generates and hosts a production-ready MCP server for every documentation site. This enables developers using AI clients (like Claude Desktop, Cursor, and Windsurf) to get instant answers about your product directly within their development environment.
11
9
12
10
## How it works
13
11
14
-
Fern analyzes your docs site structure and content, then creates an MCP server.
12
+
Fern automatically creates an MCP server for your documentation site that uses Ask Fern AI search to answer questions about your documentation.
13
+
14
+
When developers connect to your MCP server, they can ask questions about your product. Their AI client will search through your documentation and provide accurate, contextual answers. The server respects your documentation's authentication settings and reflects your current documentation content.
15
+
16
+
## Access your MCP server
17
+
18
+
Your MCP server is automatically available at `your-documentation-site.com/_mcp/server`. For example, the MCP server for Eleven Labs documentation is available here: https://elevenlabs.io/docs/_mcp/server.
19
+
20
+
To connect to your MCP server:
21
+
22
+
<AccordionGroup>
23
+
<Accordiontitle="Connect MCP server to Cursor">
24
+
25
+
1. Under the **Page actions** on any page on your site, select **Connect to Cursor**.
26
+
1. When Cursor opens, the server URL will be automatically populated. Click **Install** to connect the MCP.
15
27
16
-
Developers can access your MCP server by visiting `your-documentation-site.com/mcp` and copying the configuration snippet to add to their AI client settings. Once integrated, developers can ask their AI client questions about your products. The AI client will search through your documentation and provide accurate answers.
28
+
<video
29
+
src="cursor-mcp.mp4"
30
+
autoPlay
31
+
loop
32
+
controls
33
+
playsInline
34
+
muted
35
+
>
36
+
</video>
37
+
</Accordion>
38
+
<Accordiontitle="Connect MCP server to other agents (Claude Desktop, Windsurf, etc)">
17
39
18
-
<Tip>
19
-
**Looking for Fern's own MCP server?** If you want to connect your AI client to Fern's MCP server for help with Ask Fern, Docs, and SDKs, see the [fern-mcp-server repository](https://github.com/fern-api/fern-mcp-server).
20
-
</Tip>
40
+
1. Visit `your-documentation-site.com/_mcp/server` in a browser to see the server information
41
+
2. Add this URL to your AI client's MCP server configuration
42
+
3. Authenticate if your documentation requires authentication
43
+
4. Start asking questions about your product directly in the AI client
0 commit comments