Skip to content
🎯 New workshop: Govern AI Costs in Real Time — Hands-On with agentgateway agentgateway has joined the Agentic AI FoundationLearn more

For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.

Page as Markdown

MCP servers

Connect to an MCP server and try tools in the agentgateway playground.

Use the agentgateway binary to proxy requests to an open source MCP test server, server-everything. Then, try a tool in the built-in agentgateway playground.

Before you begin

  1. Install the agentgateway binary.

    curl -sL https://agentgateway.dev/install | bash

Steps

Step 1: Start the MCP test server

Run the open source server-everything MCP test server with the streamable HTTP transport.

PORT=3005 npx -y @modelcontextprotocol/server-everything streamableHttp

Step 2: Start agentgateway

You add the MCP server from the UI in the next steps, so you can start agentgateway with an empty config file.

echo '{}' > config.yaml
agentgateway -f config.yaml

Example output:

info  app  serving UI at http://localhost:15000/ui

Step 3: Enable MCP

  1. Open the agentgateway UI.
  2. On the Gateway Overview, find the MCP row and click Enable MCP.

Step 4: Add the MCP server

  1. In the MCP section of the navigation menu, click Servers, and then click Add server.
  2. For the Server name, enter server-everything.
  3. Keep the Streamable HTTP transport. For the URL, enter http://localhost:3005/mcp.
  4. Click Save server.

Step 5: Try a tool in the playground

  1. In the MCP section, click Tool Playground.

  2. If you see a Browser access is not allowed notice, click Apply CORS so the playground can call the MCP listener from the UI.

  3. Click Initialize to open an MCP session. The playground lists the tools that the server exposes, such as echo and various get commands.

  4. From the Tool list, select the echo tool. In the message field, enter a string, such as This is my first agentgateway setup, and click Call tool.

  5. Verify that the Result card shows an HTTP 200 response with your message echoed back.

Next steps

Check out more guides for using MCP servers with agentgateway.

Was this page helpful?
Agentgateway assistant

Ask me anything about agentgateway configuration, features, or usage.

Note: AI-generated content might contain errors; please verify and test all returned information.

Tip: one topic per conversation gives the best results. Use the + button in the chat header to start a new conversation.

Switching topics? Starting a new conversation improves accuracy.
↑↓ navigate select esc dismiss

What could be improved?

Your feedback helps us improve assistant answers and identify docs gaps we should fix.

Need more help? Join us on Discord: https://discord.gg/y9efgEmppm

Want to use your own agent? Add the Solo MCP server to query our docs directly. Get started here: https://search.solo.io/.