Skip to content

Connect a custom MCP server to your AI agent

Connect MCP server to AI agent in Ropu: add it on Apps, pick a sign-in, test it, and see which tools run alone and which ask first.

On this page

To connect MCP server to AI agent in Ropu, an admin opens the Apps page, adds the server's public https address under Custom MCP servers, picks how it signs in, and presses Test connection. If the test passes, every agent in the workspace can use the server's tools, with approvals protecting anything that writes or sends.

What MCP is, in plain English

MCP (Model Context Protocol) is an open standard for giving AI agents tools. An MCP server is a small service that says "here are the things I can do": search your notes, look up an order, create a ticket. An agent can then call those tools as part of its work.

Ropu already connects to many apps for you from the integrations list. A custom MCP server is for everything else: an internal tool, a niche service, or a hosted product that publishes its own MCP server.

Before you start

A few facts decide whether your server will work:

  • Public https only. Ropu runs in the cloud, so it can only reach servers on the internet. http://localhost, private networks, link-local and cloud-metadata addresses and plain http are refused. Redirects are re-checked.
  • Transports. Streamable HTTP, the current MCP standard, is tried first. If the server only speaks the older HTTP+SSE style, Ropu falls back to it automatically.
  • Privacy. What your agents send to a tool, and what it returns, passes through Ropu's servers. Only connect servers you trust.
  • No keys in the URL. Anyone in the workspace can see the URL, so one with a ?query or #fragment is refused. Use the sign-in field instead.
  • Limits. Up to 10 servers per workspace and 100 tools per server. A tool-list request has 20 seconds and a tool call has 60. Responses over 1 MB are refused, and what a tool returns is cut to 20,000 characters.

Add the server

  1. Open Apps, find Custom MCP servers (admins only), and press Add.
  2. Give it a name. It becomes the short name in tool names, so "My notes" becomes my-notes.
  3. Paste the server URL, for example https://your-server.example.com/mcp.
  4. Choose a sign-in: none, Sign in with OAuth, a Bearer token (sent as Authorization: Bearer ...), or a custom header such as X-API-Key.
  5. Press Test connection. Ropu connects, lists the tools it found and shows which run on their own and which ask first.
  6. Press Add server.

Your token or header value is encrypted in the vault and never shown again. It is only put on the request to your server, and it does not appear in logs or audit rows. Adding the same name again updates that server, and leaving the key blank keeps the saved one. Remove deletes the saved key, and the agents lose the tools.

Choosing the right sign-in

  • None for a server that needs no authentication. Be careful: that is only sensible for a harmless public service.
  • Bearer token or custom header for servers that give you an API key. This is the simplest option for your own server.
  • OAuth for hosted servers, where you approve access on the provider's own page instead of pasting a key.

How OAuth sign-in works

OAuth is recommended for hosted servers such as Notion, Linear, Atlassian or Stripe. Choose Sign in with OAuth, press Connect, and you are sent to the provider's sign-in page. Approve access, and you return to Apps with the server marked Connected, the scopes it granted and its tool list.

Ropu follows the MCP authorization standard (OAuth 2.1 with PKCE). Tokens are stored encrypted in the vault and only ever sent to the server's own origin. Ropu renews them before they expire. If the provider ends the sign-in, the server shows Needs reconnect and its tools are hidden from agents until you press Reconnect.

Some providers need one more permission than first requested. Ropu handles this by asking again for what was already granted plus the scope the server named. If the provider will not grant it, the card says so and offers a Grant it button. A server that also accepts a personal API key can be added with a Bearer token instead.

Which tools run on their own, and which ask

Tools appear to agents as mcp.<server>.<tool>, for example mcp.my-notes.search_notes.

  • By default, every call asks for approval.
  • A tool runs on its own only when the server marks it read-only and its name does not read like a send or a write (send, create, update, delete, post and similar). A tool called delete_all still asks even if the server marks it read-only.
  • Calls that could send or write also pass through the workspace's outbound reviewer, which can hold a call carrying a secret, card or ID numbers. It fails closed if it cannot decide.
  • In an agent's tool grants, the key mcp.<server> sets the whole server for that agent: never hides it, ask makes even read tools ask, always lets read-only tools run. Tools that can write always ask.

Whatever a tool returns is treated as untrusted data written by a third party. Agents are told never to follow instructions inside it, and the run is marked as influenced by external content, which raises the risk shown on any approval that follows. For more on why approvals matter, see human in the loop AI agents.

Connect a server that runs on your computer

A server started with a command (stdio) or listening on localhost cannot be reached from Ropu. Run it in HTTP mode, then give it a public https address with a tunnel:

# start your MCP server in HTTP mode, for example on port 3000
ngrok http 3000

Paste the https://...ngrok-free.app address plus your server's path, often /mcp. A stdio-only server can be wrapped in an HTTP bridge such as mcp-proxy and tunnelled the same way.

The tunnel approach is the same one used to run an agent on a local model with Ollama.

If the connection fails

The test message says why in plain English. The usual causes:

  • "The server turned us away." The token or header is wrong or missing.
  • "Nothing found at that address." Check the path. Many servers end in /mcp or /sse.
  • "That is not an MCP server." The address answers, but not with MCP over HTTP.
  • "The server did not answer in time." The server or tunnel is off or too slow.
  • OAuth invalid_token right after sign-in. Use the exact MCP URL, often ending in /mcp, not a web page or a redirecting alias.
  • The server was added but the agent ignores it. Ask the agent to use it by name. A grant of never for that server on the agent also hides it.

If a server is down during a run, its tools are simply missing for that run. The run does not fail because of it.

A sensible way to start

Begin with a read-only server and a single teammate. Watch which calls ask for approval, then decide whether to loosen anything. When you are ready, start free and add your first server on the Apps page.

Frequently asked questions

What is an MCP server?

MCP (Model Context Protocol) is an open standard for giving AI agents tools. An MCP server exposes a set of tools, such as search notes or create ticket, that an agent can call.

Who can add a custom MCP server in Ropu?

Workspace admins add and remove servers on the Apps page, under Custom MCP servers. Once connected, every member's agents can use the server.

Will an agent run any tool on its own?

Only read-only tools. By default every call asks for approval. A tool runs alone only if the server marks it read-only and its name does not read like a send or a write.

Can I connect a server that runs on my own computer?

Not directly. Ropu runs in the cloud and only reaches public https addresses. Run the server in HTTP mode and expose it with a tunnel, and protect it with a token.

How many servers can I connect?

Up to 10 servers per workspace and 100 tools per server.

Hand off the busywork, keep the final say

Ropu's AI teammates draft and propose. Nothing is sent or posted until you approve it.

This article was drafted with AI assistance and reviewed by the Ropu team before publishing. Facts about Ropu come from how the product works today.

Connect a custom MCP server to your AI agent | Ropu