Skip to content
GenerateDocs
What's new
ConnectorsCustom MCP servers
On this page

Add a custom MCP server to Generate

Connect your own MCP server over Streamable HTTP or SSE, by hand or from a JSON config, test it, handle sign-in and share it safely through agents.

EditionsEnterprise: availableConsumer: availableStorage: availableHealthcare: availableAirgapped: not available
Who can do thisAnyone whose team grants Connectors and Custom MCP, which teams hold by default.
WhereConnectors, then Custom MCP, then Add custom MCP.

This page shows you how to give your agents the tools of any service that speaks the Model Context Protocol, such as an internal API your team runs or a vendor’s hosted MCP endpoint.

Use one when the app you need is not on Supported connectors but offers an MCP server. Generate connects to MCP servers over the network only, through Streamable HTTP or SSE. A server that runs as a local command (stdio) cannot be added, and the server’s address must be reachable from your Generate site.

Find the servers you added and the ones shared with you.

  1. Open Connectors

    Open Connectors from the sidebar, under More if it is not in the sidebar itself.

  2. Select the Custom MCP tab

    Its count includes servers shared with you. Each card shows the server’s name, its health and how many tools the last test found.

    The Custom MCP tab of the Connectors window, with one server card marked HealthyOpen full size
    Shown in the enterprise edition.

Find a server with Search MCP servers…, and order the list with Sort by: Recently added, Recently updated, Name (A-Z) or Name (Z-A). With no servers yet, the tab says “No custom MCP servers yet.”

Enter the server’s address, transport and headers yourself.

  1. Select Add custom MCP

    On the Custom MCP tab, select Add custom MCP. The Add a custom MCP window offers two ways in.

    The Add a custom MCP window, offering Direct configuration or Import from JSONOpen full size
    Shown in the enterprise edition.
  2. Select Configure

    Under Direct configuration, select Configure.

  3. Name the server

    On Details, enter a Server Name. It must differ from your other servers’ names.

  4. Tell the agent when to use it

    Optionally fill in Instructions for the agent, up to 1,000 characters, such as “Use this MCP to look up Jira tickets when the user references a JIRA-XXX issue”. Generate adds the text to every tool description from the server.

    The Details step of the MCP configuration window, with Server Name and Instructions for the agentOpen full size
    Shown in the enterprise edition.
  5. Enter the transport and address

    Select Continue. On Configuration, choose the Transport, Streamable HTTP or SSE, and enter the Server URL, which must start with http:// or https://.

  6. Add any headers

    If the server expects headers, such as an API token, fill in Header name and Header value under Custom headers (optional). Select Add custom header for each further header.

    The Configuration step of a custom MCP server, with one custom header added and Test connectionOpen full size
    Shown in the enterprise edition.
  7. Test the connection

    Select Test connection. A working server reports that it connected and how many tools it discovered.

  8. Select Add

    Generate confirms that the server is ready to use.

Testing is optional: you can save without it. A server that needs you to sign in says “This server requires sign-in.” during the test, and you can save it anyway; Generate asks you to sign in the first time an agent uses it.

Start from a client config you already have instead of typing it.

  1. Select Import

    Select Add custom MCP, then Import under Import from JSON.

  2. Paste the config

    Paste it into Import MCP server from JSON. Generate expects a top-level mcpServers object holding one server with a url, an optional transport and optional headers, and shows what it detected below the box.

    The Import MCP server from JSON window with the example config in the paste box, Cancel and ContinueOpen full size
    Shown in the enterprise edition.
  3. Review and add

    Select Continue. The form opens filled in, so you can review it, test it and select Add.

{
"mcpServers": {
"my-server": {
"url": "https://mcp.example.com",
"transport": "http",
"headers": { "Authorization": "Bearer ..." }
}
}
}

Paste one server at a time. A config with several entries is refused, because each connection is tested on its own before it is saved.

Register an OAuth app for a server that cannot register one by itself. A server that supports automatic app registration needs nothing from you; when it does not, Generate shows Connect this server.

  1. Register the Redirect URI

    Copy the Redirect URI shown and register exactly that address with the provider. A mismatch is the most common cause of a failed sign-in.

  2. Paste the app’s details

    Paste the app’s Client ID, and its Client secret if it has one. Leave the secret empty for a public app that uses PKCE only.

  3. Select Save and continue

    You do this once. People you share an agent with then sign in with one click.

Edit, test, sign in to or delete a server you added.

  1. Open the card’s menu

    On the Custom MCP tab, open the three-dot menu on the server’s card.

    The menu on the Larkspur metrics server card, with Edit, Test connection and DeleteOpen full size
    Shown in the enterprise edition.
  2. Select an action

    The server actions table says what each one does.

Action What it does
Edit Opens Edit MCP server with the saved values. Select Update to save. Headers you saved load into the form.
Test connection Tests the saved server again and reports how many tools it found, or why it failed.
Connect Shown for a sign-in server you have not signed in to; starts the sign-in.
Disconnect Shown for a sign-in server you signed in to; removes your own sign-in, never other people’s.
Delete Removes the server after you confirm in Delete MCP server?.

Each server card shows a status:

Status What to do
Healthy Nothing. The last test reached the server.
Not tested Select Test connection before adding the server to chats.
Sign-in required You are asked to sign in the first time the server is used.
Unreachable Check the Server URL and Transport with Edit.
Connection error The server answered with an error. Check its configuration, then test again.

When you share an agent that uses a custom MCP server, Generate warns that the people you share it with can use the server through that agent only; it does not appear in their own Connectors. If the server is not healthy at that moment, the warning names it, because they may see tool errors. Their copy is marked Shared. They can connect, disconnect and test their own connection, and only you can edit or delete the server.

Deleting a server removes every agent’s access to its tools and cannot be undone. If agents use it, Generate says how many, and how many people each is shared with, before you confirm.

Message What to do
“Server URL must use http:// or https://.” Add the scheme to the address.
“You already have an MCP server with this name.” Choose another Server Name.
“Invalid JSON. Expected a top-level mcpServers object.” Wrap the server in mcpServers, as in the example.
“This entry doesn’t have a url. Only HTTP and SSE MCP servers are supported.” The entry describes a local command; use the server’s network address instead.
“Could not connect: …” after Test connection Check the address, transport and headers, and that the server accepts connections from your Generate site.

More fixes are on Troubleshooting.

Last updated on