RAG vs. MCP: when to use what for your content system
RAG and MCP solve different problems for AI agents. Learn the difference, when to use each, and how they work together in content systems.
RAG and MCP solve different problems for AI agents. Learn the difference, when to use each, and how they work together in content systems.
You're already sitting on structured, semantically rich data with clear provenance and governance. The question is whether you're managing it like it.
Wire LLMs into Sanity Studio — covering RAG with GROQ, Agent Actions for agentic writes, Compute for event-driven automation, and MCP for direct agent access.
You built a compelling proof of concept using AI. Now, let’s fix it so every content change doesn’t need to go through you.
Find stale pages, missing metadata, and terminology drift. Fix them in the same session. All changes staged as drafts.
AI shopping assistant that queries your catalog with real business constraints, not similarity scores. Validates inventory before recommending products.
TypeGen generates exact TypeScript types from your schemas and queries. So AI tools stop guessing and developers stop debugging phantom fields.
Translate structured content field-by-field with Agent Actions. Preserve references, slugs, and schema integrity with human review.
Automatically track when content was first published with a timestamp that sets once and never overwrites, providing reliable publication history for analytics and editorial workflows.
AI-powered automatic tagging for Sanity blog posts that analyzes content to generate 3 relevant tags, maintaining consistency by reusing existing tags from your content library.
Integrate content from Sanity on Astro websites
Setup "Live by Default" fetches and interactive live preview with Presentation in Sanity Studio
Cloud CMSes are the modern alternative to legacy self-hosted CMSes. In 2026, they've become the foundation for AI-powered content operations.
A minimal Angular SPA app with Sanity Studio.
A minimal Nuxt app with Sanity Studio.
Want to build with new technologies but are unsure where to start? This guide introduces 5 promising front end frameworks and how they integrate with Sanity.
A minimal Astro app with Sanity Studio.
A complete guide to setting up your blog using Astro and Sanity
This guide teaches how to add a custom input component to a field for Sanity Studio v3
Learn about headless Content Management Systems: what they are, how they work, and how they differ from traditional CMSes like WordPress.
This can be used for blogs or articles where you want to possibly display next and previous article buttons
How to automatically generate linked headings with a custom serializer
Migration script to convert plain text to block content across your content lake
A thorough intro to using GROQ-projections in a webhook contest
A thorough intro to using GROQ-filters in a webhook-context
Simple content type for a question and answer pattern
Schemas for adding richer quotes within Portable Text
Setup interactive live preview with Presentation in a Next.js pages router application
Make a rough calculation of word count and reading time for your Portable Text fields
NextAuth Adapter and Provider for Sanity
How to deliver better content experiences across cultures, languages, and tastes.
Hierarchies are handy for organizing, but they can also fence you in. Learn how to build them, when to use them, and why you might want to treat navigation as a separate concern.
How to add different types of “breaks” for Portable Text that can be translated to horizontal rules, “read more”, sections, chapters, and so on.
Add lists of image assets based on information in the asset document using the Structure Builder API
This migration scripts lets you migrate documents to a new type.
Use data for the current logged in user as initial values in a new document
Migration script for deleting documents based on a GROQ filter
Learn how to shape Sanity Studio to improve editor flows and content quality.
Schemas for running a podcast backend on Sanity.io
How to work through tricky content questions and build structures that will stand the test of time.
Schema for a text with a heading and a illustration with a caption.
Recursive schema for nested navigations
Learn how to create a page builder from structured content that can withstand the test of time and redesigns.
In this tutorial, we’ll cover how to make taxonomy pages with Gatsby with structured content from Sanity.io.
In this video, you'll learn how to use the Sanity CLI to duplicate an existing document and set its _id manually from a text editor.
In this tutorial, you will learn how to make a custom asset source plugin that uses the webcam to insert a photo in the Sanity Studio’s image field.
In this chat, Ronald and Knut will give you some cues and pointers to how to think and approach structured content
Five cool image tricks that you can achieve with Sanity
Learn how to create a custom CodePen block with a preview for Sanity Studio, inspired by Chris Coyier’s implementation for Wordpress’ Gutenberg editor.
Learn how to make a What You Get Is What You Hear (WYGIWYH) editor for speech synthesis using Sanity.io’s editor for Portable Text.
This guide will walk you through how to deploy Sanity Studio with Vercel in three simple steps.
How to get started with initial values
How to add a YouTube embed in the Studio, and render it on front ends
How make internal and external links with Portable Text and render them in frontends
Learn how Portable Text works
How to get started with the Next.js and Sanity.io powered landing page website
How to get started with the Nuxt.js and Sanity.io powered event website
Get started with the Sanity and Gatsby blog starter project
How to get started with the Sanity and Gatsby powered portfolio website
Display a list of documents in your dashboard
A video on how to customize the schemas in a Sanity Studio
Upload videos to Mux directly from the studio.
Run a Winamp port in your studio!
This plugin install schemas for hosting content for Timeline.js.
Podcast plugin for Sanity that creates schemas for podcasts and episodes with necessary iTunes data. Make as many podcasts with as many episodes as you want.
Knut has written code for the web since the early 2000s. Knut has a background in the digital humanities and has worked in the intersection between user experience design and technology. He has also been a columnist, speaker, and university lecturer.
Knut joined Sanity in 2018 as their Head of Developer Relations, and has since grown the developer community, made educational content, and much more.
Knut cares a lot about making technology and programming understandable and accessible to anyone, not just developers.