# Fern MCP for AI Agents AI Agent Connect

> Fern MCP lets you manage documentation platforms directly through your agent. You can trigger website indexing, grab search keys, and query your Ask Fern AI assistant to get specific answers from your docs. It's a direct line for documentation engineers and support teams to handle the backend of their docs without leaving their chat interface.

## Overview
- **Category:** developer-tools
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_VqEKputPZIEstF5UI8C28igkFzBgP67EyQDUBcP9/ai-agent-connect
- **Tags:** documentation, api-docs, ai-search, indexing, developer-experience

## Description

Fern MCP connects you to the Fern ecosystem to manage your documentation workflows. This Connector lets your agent handle the backend of your docs without you having to jump between tabs. Instead of manually triggering a crawl or hunting down an access key, you just tell your agent to do it. You can check your search analytics to see what people are asking, or even talk to the documentation assistant to test how it handles specific queries from your domains. It's a way to keep your docs updated and searchable without the manual overhead. When you use this through the Vinkius catalog, you get a unified way to manage your documentation updates. You can verify user permissions on the fly or push new content into the index so your AI-ready docs stay current. It turns your documentation platform into a set of actionable tools for your agent, making it way easier to maintain a high-quality developer experience. By moving these actions into your agent's workflow, you spend less time on maintenance and more time on actual content creation. It replaces the need for multiple browser tabs and manual API calls with a single chat interface that understands your documentation's specific needs.

## Tools

### get_jwt
Generate a JWT from your Fern API key for secure access.

### get_recent_queries
Pull recent user queries and analytics to see how people interact with your docs.

### get_search_key
Get Algolia search credentials for your documentation platform.

### index_website
Start a new crawling and indexing job for a specific website.

### post_chat_completion
Talk to the Ask Fern AI assistant to get answers from your specific documentation domains.

### whoami
Get the current user's information to verify authentication status.

## Prompt Examples

**Prompt:** 
```
Start indexing the new docs at https://docs.example.com.
```

**Response:** 
```
I've started a new indexing job for https://docs.example.com. You can track the progress in your Fern dashboard now.
```

**Prompt:** 
```
What are people asking about our API lately?
```

**Response:** 
```
Here are the most recent queries from your documentation domain:

*   How to use webhooks?
*   Authentication error 401
*   SDK installation guide

It looks like people are mostly focused on authentication issues right now.
```

**Prompt:** 
```
Give me a JWT for the docs site.
```

**Response:** 
```
I've generated a new JWT for your documentation platform. You can use this for secure access to the site.
```

## Capabilities

### Chat with Ask Fern
Use post_chat_completion to get specific answers from your documentation domains.

### Trigger website crawls
Use index_website to keep your content searchable and AI-ready.

### Grab search keys
Use get_search_key to get Algolia search credentials.

### Pull user queries
Use get_recent_queries to see what your audience is looking for.

### Verify user details
Use whoami to check authentication status and user information.

## Use Cases

### Updating documentation for a new release
A documentation engineer tells their agent to use index_website on a new URL so the AI search results update immediately.

### Granting secure API access
A developer asks the agent to generate a JWT using get_jwt so they can provide a teammate with temporary access.

### Troubleshooting user search issues
A support lead asks their agent to show recent queries using get_recent_queries to see why users are hitting dead ends.

### Testing Ask Fern responses
A dev asks their agent to use post_chat_completion to see if the AI correctly answers a tricky question about a specific API endpoint.

## Benefits

- Use whoami to quickly verify user permissions and details to keep your documentation platform secure.
- Use get_jwt to handle documentation access keys without leaving your chat.
- Get real-time feedback on user needs by pulling data from your documentation platform.
- Test your documentation's AI performance by talking to the assistant via chat.
- Keep your content searchable and AI-ready by automating the update process.

## How It Works

The bottom line is you get a direct way to manage your documentation platform's backend through a simple chat interface.

1. Subscribe to the Fern MCP on Vinkius and provide your API keys.
2. Connect your preferred AI client to the new endpoint.
3. Start asking your agent to index sites or query your docs.

## Frequently Asked Questions

**Can I use the Fern MCP to update my AI search results?**
Yes, you can use the Connector to trigger new indexing jobs. This ensures that your AI-ready documentation stays current whenever you push new content.

**How does the Fern MCP help with documentation analytics?**
It lets your agent pull recent user queries directly. You can see what your audience is actually looking for without leaving your chat interface.

**Can the Fern MCP help me manage my documentation access keys?**
Yes, it can generate JWTs and search keys on demand. This makes it much easier to manage secure access for your team or users.

**Is the Fern MCP good for testing my documentation's AI assistant?**
It's great for that. You can use it to send questions to the Ask Fern assistant to see how it handles specific queries from your domains.

**Who should use the Fern MCP for their documentation?**
It's built for documentation engineers, support teams, and developers. Anyone who needs to manage the backend of a Fern-hosted documentation platform will find it useful.

**Can I use the AI assistant to query my documentation?**
Yes, use the `post_chat_completion` tool with your documentation domain and a list of messages. The agent will interact with the Ask Fern assistant to provide relevant answers.

**How do I update the search index for a new site?**
Use the `index_website` tool by providing the documentation domain and the base URL you want to crawl. This will trigger a new indexing job for the Ask Fern assistant.

**How can I see what my users are searching for?**
The `get_recent_queries` tool allows you to retrieve analytics and recent questions asked by users on a specific documentation domain.