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.
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.
Open the Custom MCP tab
Section titled “Open the Custom MCP tab”Find the servers you added and the ones shared with you.
-
Open Connectors
Open Connectors from the sidebar, under More if it is not in the sidebar itself.
-
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.
Open full sizeShown 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.”
Add a server by hand
Section titled “Add a server by hand”Enter the server’s address, transport and headers yourself.
-
Select Add custom MCP
On the Custom MCP tab, select Add custom MCP. The Add a custom MCP window offers two ways in.
Open full sizeShown in the enterprise edition. -
Select Configure
Under Direct configuration, select Configure.
-
Name the server
On Details, enter a Server Name. It must differ from your other servers’ names.
-
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.
Open full sizeShown in the enterprise edition. -
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://orhttps://. -
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.
Open full sizeShown in the enterprise edition. -
Test the connection
Select Test connection. A working server reports that it connected and how many tools it discovered.
-
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.
Import a server from JSON
Section titled “Import a server from JSON”Start from a client config you already have instead of typing it.
-
Select Import
Select Add custom MCP, then Import under Import from JSON.
-
Paste the config
Paste it into Import MCP server from JSON. Generate expects a top-level
mcpServersobject holding one server with aurl, an optionaltransportand optionalheaders, and shows what it detected below the box.
Open full sizeShown in the enterprise edition. -
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.
Sign in to a server that uses OAuth
Section titled “Sign in to a server that uses OAuth”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.
-
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.
-
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.
-
Select Save and continue
You do this once. People you share an agent with then sign in with one click.
Manage a server
Section titled “Manage a server”Edit, test, sign in to or delete a server you added.
-
Open the card’s menu
On the Custom MCP tab, open the three-dot menu on the server’s card.
Open full sizeShown in the enterprise edition. -
Select an action
The server actions table says what each one does.
Server actions
Section titled “Server actions”| 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?. |
Server health
Section titled “Server health”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. |
Sharing and deleting servers
Section titled “Sharing and deleting servers”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.
When a server will not save
Section titled “When a server will not save”| 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