8. Lab: Connect your own data
20m

Lab: Connect your own data ( 20 min)

Now it's time to put your MCP skills to the test! In this hands-on lab, create your own MCP server and connect it to your own data. This is your opportunity to work with real-world data and demonstrate your understanding of Apollo MCP.

🎯 Lab Goals

By the end of this lab, you should have:

  1. Created your own MCP server and connected it to your own data.
  2. Defined at least one new tool for your MCP server.
  3. Successfully queried your data through your MCP server using either MCP Inspector or Claude.
  • MCP Server Documentation

🛠 Suggested APIs to use

If you don't have your own API in mind, you can use our demo e-commerce API.

This demo uses to connect to the REST API at https://ecommerce.demo-api.apollo.dev/.

Create a new file called products.graphql in your workshop project and add the following code:

Then replace your supergraph.yaml file with the following:

federation_version: =2.11.0
subgraphs:
products:
routing_url: http://ignored
schema:
file: ./products.graphql

You can run rover dev as usual.

rover dev --supergraph-config supergraph.yaml --router-config router.yaml

🔍 Check your work

All done? Flag down a mentor and showcase your MCP server!

A mentor will answer this multiple choice question for you.

Congratulations!

You've successfully completed the Workshop: Getting started with MCP and GraphQL! 🎉

What's next?

Previous