From Zero to Agentic Query in One Afternoon: Build a GraphQL API and Expose It to an LLM Agent via MCP

GraphQL, LLM, Java, Spring, API

Željko Kozina image
Željko Kozina

In this hands-on workshop, you'll go from an empty project to a working GraphQL API that an LLM agent can discover and query on its own. No prior GraphQL experience required; basic Spring Boot knowledge is a hard requirement! We build incrementally with Spring for GraphQL: schema design, resolvers, relationships, solving the N+1 problem with DataLoaders, and adding field-level authorisation and validation so the API is safe to expose. Then comes the agentic turn. After a short primer on the Model Context Protocol (MCP), we wrap our API as an MCP server and connect a real LLM client. You'll watch an agent introspect the schema, compose its own queries, and return answers with no hand-written integration code, then add guardrails to keep it honest. You'll leave with a service you built yourself and the judgment to know when this approach is a good fit.

Key Takeaways

Target Audience

Requirements

Duration

4 hours (including a break)

Schedule

Workshop Plan

Introduction and GraphQL Fundamentals (30 min)

Building a GraphQL API with Spring for GraphQL (80 min)

Break (10 min)

Introduction to MCP and Agent Tooling (30 min)

Exposing a GraphQL API Through MCP (80 min)

Wrap-up and Q&A (10 min)

canela Workshop

€50

Max. Attendees: 50