• JWT
  • ALGOLIA
  • AUTH
  • HUMAN

How to generate documentation security tokens with your AI

Connect Fern to your AI client once. From there, your agent handles the technical work of fetching secure keys for your docs.

Ask AI about this page

Short answer

How can I get my AI to make security tokens for my docs?

You just ask your agent for the specific key you need. It calls Fern to grab a JWT or an Algolia search key, giving you the credentials to secure your documentation. Here is how that works.

Where every token lands.

Security outcomes

The AI handles the API calls and hands you the usable credentials.

JWT

Secure JWTs

The AI pulls a JSON Web Token via Fern. You get a valid token to authorize API or doc access.

ALGOLIA

Search keys

Your agent fetches Algolia search keys. These let you restrict search access within your docs.

AUTH

Access control

The AI manages the request for specific permissions. You get the keys without manual setup.

HUMAN

Manual oversight

You decide which keys to request. The AI won't generate anything unless you ask for it.

The workflow

What your AI does when you ask for a token.

The AI translates your request into specific tool calls to Fern.

  1. Identify the token type

    Your agent determines if you need a JWT or a search key based on your prompt.

    get_jwt
  2. Fetch JWT

    The AI calls the tool to pull a JSON Web Token for your documentation.

    get_jwt
  3. Fetch search keys

    If you need to secure your search index, the AI pulls the Algolia credentials.

    get_search_key
  4. Deliver the key

    The AI provides the raw token or key directly in your chat window.

    get_jwtget_search_key

Try it

Copy these to start.

Paste these into your chat to trigger the Fern tools.

Starting points

These are basic prompts. You can add specific project names or environments to them.

Fern Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_VqEKputPZIEstF5UI8C28igkFzBgP67EyQDUBcP9/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Fern capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "fern-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_VqEKputPZIEstF5UI8C28igkFzBgP67EyQDUBcP9/mcp"
    }
  }
}
Copy into chat04
  • Generate a JWT for my documentation access.

  • I need an Algolia search key for the product docs.

  • Get me a JWT for the API testing environment.

  • Pull a search key for the user manual.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Fern once, then ask.

Connect your client to Fern in one step. Your login stays encrypted on our side, and you can start asking for keys immediately.

Connect Fern to your AI

FAQ

How this task behaves

  • 01

    Can the AI delete my existing tokens?

    No. The AI only has tools to fetch new tokens, not to manage or delete existing ones.

  • 02

    Can the AI change my Fern configuration?

    No. The AI can only use the specific tools provided to fetch JWTs and search keys.

  • 03

    Does the AI store the keys it generates?

    No. The AI retrieves the key and shows it to you; it doesn't save it to a database.

  • 04

    Can I get a token for a different service?

    No. This MCP is built specifically for Fern documentation security.

  • 05

    Will the AI generate tokens without my permission?

    No. The AI only acts when you give it a direct command in chat.

  • More questions about Fern? See everything the Fern Connector can do

Connect Fern to Claude, Cursor, ChatGPT & more