3. Follow-along: Run the MCP server
1m

Follow-along: Run the MCP server

Step 1: Configure the MCP server

  1. Create a new file called mcp-config.yaml in the root of the project.

  2. Add the following content to the file:

    mcp-config.yaml
    endpoint: ${env.GRAPHQL_ENDPOINT:-https://flyby-edu-router.up.railway.app/}
    schema:
    source: local
    path: schema.graphql
    introspection:
    introspect:
    enabled: true
    execute:
    enabled: true
    transport:
    type: streamable_http
    stateful_mode: false
    # This is for development. In production, you probably want to remove this!
    host_validation:
    enabled: false
    overrides:
    mutation_mode: "all"

This configures the MCP server to:

  • Connect to the at the endpoint specified in the endpoint key.
  • Reference a local schema file (schema.graphql).
  • Enable and execution of .
  • Use the streamable HTTP transport.
  • Disable host validation for development purposes.
  • Allow all to run.
Task!

Step 2: Download the MCP server

If you haven't already, run ./install.sh. This script downloads the latest MCP server binary apollo-mcp-server using curl -sSL https://mcp.apollo.dev/download/nix/latest | sh.

Task!

Step 3: Run the MCP server

In your terminal, run the following command:

./start_mcp.sh

You can peek inside the script for the details, but this script will:

  • Update schema.graphql with the latest schema from the .
  • Run the apollo-mcp-server binary with the mcp-config.yaml file.
  • Watch for changes to the apps/ folder (which we'll get into with MCP Apps) and restart the server as needed.

You should see logs in your terminal indicating that the MCP server is running and listening for requests.

Starting server...
2026-04-14T17:05:47.104540Z INFO Apollo MCP Server v1.12.0 // (c) Apollo Graph, Inc. // Licensed under MIT
2026-04-14T17:05:47.104960Z WARN No operations specified, falling back to introspection
2026-04-14T17:05:47.108455Z INFO Starting MCP server in Streamable HTTP mode port=8000 address=127.0.0.1
Task!

Step 4: Inspect with MCP Jam

MCP Jam is a convenient way to test MCP locally, including the App Builder tab you will use after UI is wired up.

  1. From a terminal (with the MCP server running), the inspector pointed at your local endpoint:

    npx @mcpjam/inspector@latest --url http://localhost:8000/mcp --name "Flyby" --tab app-builder
  2. Your browser should automatically open to the MCP Jam inspector with the correct URL.

    http://127.0.0.1:6274/#app-builder

    A screenshot of the MCP Jam inspector

    It will have two tools available based on our MCP configuration: execute and introspect.

  3. The chat defaults to a Claude emulator. Ask it questions about the schema and you'll get text-only responses.

    • "What data is available in my ?"
    • "Show me all the space tourism locations"
    • "Tell me more about Krypton"
  4. Explore the logs which shows the requests and results from the MCP server. You can also dig into each detail of the tool call.

http://127.0.0.1:6274/#app-builder

A screenshot of the MCP Jam inspector

http://127.0.0.1:6274/#logs

A screenshot of the MCP Jam inspector

Task!

Up next

Text answers are useful, but you already invested in a UI! Let's dive into MCP Apps and see how we can display our UI in the chat window.

Previous