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:
- Created your own MCP server and connected it to your own data.
- Defined at least one new tool for your MCP server.
- Successfully queried your data through your MCP server using either MCP Inspector or Claude.
🛠 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 Apollo Connectors 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.0subgraphs:products:routing_url: http://ignoredschema: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!
Congratulations!
You've successfully completed the Workshop: Getting started with MCP and GraphQL! 🎉
What's next?
- Connect the Apollo MCP Server to your own graph and your own backend services.
- Implement authorization for an additional layer of security.
- Join the MCP Server Builder series on Luma to learn more about building MCP servers alongside a community of developers.