Skip to content

Lab 3 - Bring Your Own Client

Seat time

Approximately 25 – 35 minutes for Steps 1 to 7, setting up one client with the lab key and token. That assumes the client is already installed and signed in. Most of the time goes into editing the configuration, restarting the client and confirming that both servers connected; the prompts at the end take a few minutes.

Switching to your own credentials in Steps 8 to 12 adds about 20 – 30 minutes, mostly creating the key and token in each platform and setting the environment variables.

The hosted tool you have been using is a demonstration. It exists so you can see MCP work in two minutes without installing anything, and when your lab expires it goes away.

This lab is the other half. You are going to connect the same two Cisco-hosted MCP servers to the AI client you already use, so that after today, asking your network a question is something you do from the tool you already have open.

Nothing here is lab-specific. The endpoints are the production ones, the configuration is the vendor's own documented configuration, and it will keep working with your own API keys long after this lab is gone.

Note

This lab is optional, and it is the only one that needs something from your own machine: an MCP-compatible AI client installed and signed in, and the ability to edit a configuration file in your home directory.

If you do not have that today — a managed laptop, no client installed, no time — skip it. Labs 1 and 2 are a complete lab without it. Nothing here depends on your lab reservation being alive either, so you can come back to this page next week and do it with your own API keys.

Steps

  1. Collect the two lab API keys — the same two you pasted into the sidebar in Lab 1 and Lab 2. Each is linked at the step that asks for it, so go back and copy them from there.

    Important

    These are shared lab keys used by everyone in your session, and they are rotated on a schedule. Both are read-only: the ThousandEyes token is an API key with view permissions only. Keep the write tool group off anyway — in your own client there is no lab tool filtering the tools, and it is the habit you will want when you switch to your own token. Use them today to prove the setup works. Before you rely on this in your own work, replace them with your own keys, following Steps 8, 9 and 12. Once they are in your client's configuration file, blank them out of any config snippet or screenshot you send with your feedback, and never paste them into Webex or email.

    These keys are only for this lab's use. Please DO NOT use them for any other purpose. The Cisco team rotates these keys from time to time in case of any misuse.

  2. Decide where the keys go. For this lab you paste the two shared keys straight into your client's user-level MCP configuration: the one in your home folder that applies to every project. There are no environment variables to set, and nothing depends on how you launch the client.

    Important

    Paste the lab keys into the user-level file only, never into a configuration file inside a project folder such as .cursor/mcp.json, .mcp.json or .vscode/mcp.json. Project files get committed and shared, and a key inside one is a key published. Do this with the shared lab keys only: your own credentials go into environment variables instead, in Step 12.

  3. The two server endpoints, which are the same for everyone:

    Server URL Authentication
    Meraki https://mcp.meraki.com/mcp Authorization: Bearer <key>
    ThousandEyes https://api.thousandeyes.com/mcp Authorization: Bearer <token>

    Information

    Both are remote HTTP servers hosted by Cisco. There is nothing to install, no local process, and no Node.js requirement for the configurations shown below.

  4. Configure your client. First check that it can reach both servers:

    Client Meraki MCP ThousandEyes MCP
    Claude Desktop Not yet supported: connectors accept only unauthenticated or OAuth servers, and Meraki needs an API key Supported, as a custom connector with OAuth sign-in
    Claude Code Supported Supported, with the bearer header below; not yet in ThousandEyes' client list
    Cursor Supported Supported, also as a Cursor plugin
    VS Code Supported Supported; GitHub Copilot must be enabled
    Codex Supported Supported

    This reflects the Meraki and ThousandEyes MCP documentation when this guide was written. Both servers are still changing — Meraki's is in beta — so check there if your client's row looks out of date.

    Then find your client below and skip the rest. The examples use the shared lab key and token from Lab 1 and Lab 2, so you can prove your client works against the lab's demo environment before you point it at your own production organizations in Step 12. In every example, replace each placeholder, square brackets included, with the real value, and keep the quotes around it: "Bearer [SharedLabMerakiReadOnlyKey]" becomes "Bearer abc123…". In the file paths, ~ is your home folder; on Windows, that is %USERPROFILE%.

    Cursor — add to ~/.cursor/mcp.json:

    {
      "mcpServers": {
        "meraki": {
          "url": "https://mcp.meraki.com/mcp",
          "headers": {
            "Authorization": "Bearer [SharedLabMerakiReadOnlyKey]"
          }
        },
        "ThousandEyes": {
          "url": "https://api.thousandeyes.com/mcp",
          "headers": {
            "Authorization": "Bearer [SharedLabThousandEyesReadOnlyToken]"
          }
        }
      }
    }
    

    Claude Code — run these two commands in a terminal. --scope user writes the servers to your user-level configuration rather than to the project you are in:

    claude mcp add --transport http --scope user meraki https://mcp.meraki.com/mcp --header "Authorization: Bearer [SharedLabMerakiReadOnlyKey]"
    claude mcp add --transport http --scope user thousandeyes https://api.thousandeyes.com/mcp --header "Authorization: Bearer [SharedLabThousandEyesReadOnlyToken]"
    

    VS Code — open the Command Palette, run MCP: Open User Configuration, and add:

    {
      "servers": {
        "meraki": {
          "type": "http",
          "url": "https://mcp.meraki.com/mcp",
          "headers": {
            "Authorization": "Bearer [SharedLabMerakiReadOnlyKey]"
          }
        },
        "ThousandEyes": {
          "type": "http",
          "url": "https://api.thousandeyes.com/mcp",
          "headers": {
            "Authorization": "Bearer [SharedLabThousandEyesReadOnlyToken]"
          }
        }
      }
    }
    

    Codex — add to ~/.codex/config.toml. Codex is the one client here that does not use JSON: TOML is a plain-text config format like an old .ini file, with key = value lines under a [section] heading.

    [mcp_servers.meraki]
    url = "https://mcp.meraki.com/mcp"
    http_headers = { "Authorization" = "Bearer [SharedLabMerakiReadOnlyKey]" }
    
    [mcp_servers.thousandeyes]
    url = "https://api.thousandeyes.com/mcp"
    http_headers = { "Authorization" = "Bearer [SharedLabThousandEyesReadOnlyToken]" }
    

    Codex reads config.toml only when it starts, so restart it after saving the file, or the new servers will not connect.

    Note

    Claude Desktop has no example above, because it does not read remote servers from a configuration file. To add ThousandEyes, go to Settings → Connectors → Add custom connector, enter https://api.thousandeyes.com/mcp, and sign in with your ThousandEyes account when the browser opens. That uses your own ThousandEyes login rather than the lab token. Meraki cannot be added there until it supports OAuth, so to try both servers together, use one of the other clients.

  5. Restart your client completely, then confirm both servers connected. Most clients list MCP servers and their status in a settings or tools panel; in Claude Code, run claude mcp list. If a server shows as failed, the cause is almost always one of three things: the client was not restarted, the configuration went into a project file instead of the user-level one, or the JSON has a trailing comma. A restart may not be enough on its own: some clients add new servers switched off, or wait for you to approve them first. If a server does not appear as connected, open your client's MCP settings and turn it on.

    The quickest check is to ask the agent itself, since it can only list the servers and tools it can actually reach:

    Which MCP servers are connected right now, and which tools does each one give you? Tell me plainly if the Meraki or the ThousandEyes server is missing.
    

    If it lists both servers with their tools, you are ready for Step 6. If one is missing, the agent usually cannot see why — a failed connection never reaches it — so go back to the client's MCP settings, where the error is shown.

    Important

    The ThousandEyes server groups its tools into reads and writes, and your client may let you enable each group separately. If you are new to MCP, enable the read tools only to begin with. Write tools change your ThousandEyes account, such as creating tests or alert rules, and some of them consume units; leave them off until you have a specific reason to turn them on.

  6. Ask a question you already know the answer to, so a wrong answer is obvious:

    What Meraki organizations can I see, and how many ThousandEyes tests are configured?
    

    You should get Meraki Launchpad 🚀 and the same test list you saw in Lab 2, now from your own client.

    Hint

    Your own client probably runs a larger model with more reasoning than the lab agent, so its answers may be fuller and better organized. They are not automatically more correct: a stronger model makes different mistakes, not none. Keep checking each answer against the tool calls behind it — most clients show them, often collapsed — exactly as you did in Labs 1 and 2.

  7. Try something your own client can do that the hosted tool cannot. This is the real reason to do Lab 3 — your client has your files, your terminal, and your repositories alongside the network data:

    List the networks in the Meraki organization that have an appliance. For the first five, one network at a time, pull the VLAN configuration and write it to a CSV in this folder, one row per network per VLAN. Skip any network that does not have VLANs enabled.
    
    Pick five wireless networks in the organization and, one network at a time, compare their SSID configuration. Write me a markdown table of where they differ.
    

    Shared rate limit

    Every Meraki MCP server shares your organization's limit of 10 requests per second with everyone else in your session. The server retries a rejected call, but it cannot stop your agent from sending many at once, so ask for a few networks at a time. If answers slow down or fail with 429, wait a few seconds and ask again rather than re-running the whole prompt.

    Information

    This is the step where MCP stops being a chat feature. The agent is reading live network state and writing to your working directory in one motion — the same loop you would otherwise script by hand against the REST API.

    Before you continue

    In Steps 1 to 7 you connected your own AI client to both MCP servers with the lab key and token, and tested it against the lab environment. Steps 8 to 12 switch the same setup to credentials of your own. Follow them for whichever platform you have: Meraki, ThousandEyes, or both. If you do not have either environment, or you are not ready to connect it to an AI agent yet, skip Steps 8 to 12 and come back when you are.

  8. Create your own Meraki key. In the Meraki Dashboard, go to Organization > API & Webhooks, or the My profile page, and generate a key for an account with read-only organization access. You will switch your client over to it in Step 12.

    Important

    Generate the key from an account that has read-only access. Do not generate a read-write key and rely on the MCP server to stay read-only for you. The Meraki MCP server itself supports only read operations — but an AI agent holding a read-write key is resourceful, and can call the Dashboard API directly, outside the MCP server, where nothing stops it writing. The read-only account is the control that actually holds. This warning is Meraki's own, and it is the most important sentence in this lab.

  9. Create your own ThousandEyes token. Generate a user API token from your ThousandEyes account settings. The account needs the API Access permission and nothing more.

    Information

    Your own token can reach whatever your ThousandEyes account can, so the advice from Step 5 matters more here: keep the write tool group off until you have a specific reason to turn it on. Note also that some tools — Instant Tests in particular — execute a live test and consume units, billed the same as a scheduled test.

  10. Know the rate limits before you point this at a customer environment, because an agent can generate requests far faster than a person clicking through a dashboard.

    Platform Limit
    Meraki 10 requests per second, per organization. The MCP server retries with exponential backoff on 429.
    ThousandEyes 240 requests per minute, organization-wide for a bearer token; a separate 240/minute for each OAuth 2.0 client.

    Note

    The Meraki limit is per organization, and it is shared with everything else using that org — your other integrations, your colleagues, and during this lab, the other students. Retries soften a busy moment, but they do not stop an agent that sends dozens of calls at once from crowding out everything else, so in a customer organization ask for a few networks at a time, as in Step 7.

  11. One last thing worth knowing if your organization restricts Dashboard API access by source IP. Requests through the Cisco-hosted Meraki MCP server arrive from Cisco's egress addresses, not yours, so you would need to allowlist them:

    158.115.141.245
    158.115.141.238
    158.115.141.209
    158.115.133.170
    158.115.133.139
    158.115.133.156
    

    Important

    Read this carefully, because it cuts the other way too. The hosted MCP server does not currently enforce your organization's Dashboard API IP restrictions. A user with a valid API key can make calls through it even when their own IP is not on your allowlist. If that matters to your security posture, run the local open-source Meraki MCP server instead, which makes its calls from wherever you run it. Meraki has said enforcement is planned but is not available today.

  12. Switch your client to the credentials of your own environments. The lab keys stop working when they are rotated, and the setup you just built should not stop with them. Your own credentials do not go into the configuration file: they go into environment variables, and the configuration only names those variables. That way the file holds nothing secret and is safe to keep anywhere.

    First, make the key and token you created in Steps 8 and 9 available to every app you start, not just one terminal:

    macOS or Linux — the values go in your shell profile, the file your shell reads each time it starts. Your AI client picks them up from it when it launches. Running export in a terminal is not enough: it lasts for that one window only, and your AI client never sees it.

    1. Open your profile. On macOS, this opens ~/.zshrc in TextEdit, and creates it if it does not exist yet:

      touch ~/.zshrc && open -e ~/.zshrc
      

      If you use bash instead of zsh, the default on most Linux systems, edit ~/.bashrc in your usual editor.

    2. Paste these lines at the end of the file, replace the placeholders with your key and token, and save:

      export MERAKI_DASHBOARD_API_KEY="[YourOwnMerakiReadOnlyKey]"
      export THOUSANDEYES_API_TOKEN="[YourOwnThousandEyesToken]"
      
    3. Check. Open a new terminal window and run the command below. It prints set once for each value it finds, without showing either one:

      echo ${MERAKI_DASHBOARD_API_KEY:+set} ${THOUSANDEYES_API_TOKEN:+set}
      

    Windows (PowerShell) — setx stores the values for your user account. It does not change the window you run it in, only apps started afterwards:

    setx MERAKI_DASHBOARD_API_KEY "[YourOwnMerakiReadOnlyKey]"
    setx THOUSANDEYES_API_TOKEN "[YourOwnThousandEyesToken]"
    

    Then replace the lab configuration from Step 4 with one that reads those variables:

    Cursor — in ~/.cursor/mcp.json:

    {
      "mcpServers": {
        "meraki": {
          "url": "https://mcp.meraki.com/mcp",
          "headers": {
            "Authorization": "Bearer ${env:MERAKI_DASHBOARD_API_KEY}"
          }
        },
        "ThousandEyes": {
          "url": "https://api.thousandeyes.com/mcp",
          "headers": {
            "Authorization": "Bearer ${env:THOUSANDEYES_API_TOKEN}"
          }
        }
      }
    }
    

    Claude Code — remove the lab servers with claude mcp remove --scope user meraki and claude mcp remove --scope user thousandeyes, then add this as .mcp.json in any project where you want them. It holds only variable names, so it is safe to commit:

    {
      "mcpServers": {
        "meraki": {
          "type": "http",
          "url": "https://mcp.meraki.com/mcp",
          "headers": {
            "Authorization": "Bearer ${MERAKI_DASHBOARD_API_KEY}"
          }
        },
        "ThousandEyes": {
          "type": "http",
          "url": "https://api.thousandeyes.com/mcp",
          "headers": {
            "Authorization": "Bearer ${THOUSANDEYES_API_TOKEN}"
          }
        }
      }
    }
    

    VS Code — in the user configuration (MCP: Open User Configuration):

    {
      "servers": {
        "meraki": {
          "type": "http",
          "url": "https://mcp.meraki.com/mcp",
          "headers": {
            "Authorization": "Bearer ${env:MERAKI_DASHBOARD_API_KEY}"
          }
        },
        "ThousandEyes": {
          "type": "http",
          "url": "https://api.thousandeyes.com/mcp",
          "headers": {
            "Authorization": "Bearer ${env:THOUSANDEYES_API_TOKEN}"
          }
        }
      }
    }
    

    Codex — in ~/.codex/config.toml, replace each http_headers line with bearer_token_env_var:

    [mcp_servers.meraki]
    url = "https://mcp.meraki.com/mcp"
    bearer_token_env_var = "MERAKI_DASHBOARD_API_KEY"
    
    [mcp_servers.thousandeyes]
    url = "https://api.thousandeyes.com/mcp"
    bearer_token_env_var = "THOUSANDEYES_API_TOKEN"
    

    Quit the client completely and start it again: on macOS press Cmd+Q, on Windows close every window of it. Closing one window leaves the app running with its old environment. For Claude Code and the Codex CLI, open a new terminal and start them from there. Then run the Step 6 prompt once more. This time the answer should come from your own organizations and tests, not the lab's.

    Note

    A client reads environment variables once, when it starts. If it was already running when you set them, it will not see them, and the server answers 401 Unauthorized because the header arrives with no key. Quitting it completely is what fixes that; opening a new window is not enough.

    Hint

    A shell profile keeps the credentials in plain text in your home folder. On macOS you can keep them in the Keychain instead and have the profile read them from there: store each one once with security add-generic-password -a "$USER" -s meraki-dashboard-api-key -w (it prompts for the value), then use export MERAKI_DASHBOARD_API_KEY="$(security find-generic-password -s meraki-dashboard-api-key -w)" in ~/.zshrc. Your company's secrets manager is the better choice still, if you have one.

Congratulations on completing lab 3!

You have both MCP servers running in your own AI client with your own read-only keys, you have used them alongside your local files, and you know the three things that decide whether this is safe to point at a production organization: read-only keys, rate limits, and where the requests actually come from.

Check in

If your lab account is still active, sign in at agenticops.merakitraining.net and click Lab 3 under Lab check-in.


Keep Learning

Keep Learning

  • The Impact of Agentic AI on Network Operations — Cisco's view of the wider shift this lab sits inside. MCP is the interface layer; this is the operating model around it, and the better starting point if you need to explain to someone else why any of this matters.
  • Meraki MCP Server documentation — the authoritative source for endpoints, client configuration and current limitations. Meraki MCP is in beta; tool schemas and configuration may change in ways that are not backward compatible.
  • Local, open-source Meraki MCP server — run it yourself, customize it, or use it with Federal, GovCloud and localized Meraki environments, which the Cisco-hosted server does not support.
  • ThousandEyes MCP Server documentation — the full tool catalogue with sample prompts for each, plus per-client setup.
  • Model Context Protocol specification — the open standard both servers implement, if you want to build one of your own. Understanding MCP servers is the page to start on: it covers the three things a server can expose — tools, resources and prompts — and who controls each.
  • Model Context Protocol (Wikipedia) — the short version of where MCP came from, the "N×M" integration problem it was built to solve, and who has adopted it since.
  • Meraki Dashboard API documentation — what sits underneath the MCP server, and still the right tool when you want a deterministic script rather than an agent.