What is the Model Context Protocol (MCP) and why is it important for building AI agents?
MCP (Model Context Protocol) is a standard that allows large language models (LLMs) to dynamically discover and use external tools at runtime, rather than relying on a fixed set of hardcoded functions. This enables AI agents to access a list of available tools provided by an MCP server, supporting dynamic tool discovery, standardized schemas, and plug-and-play agent extensions. MCP is valuable for building AI-native applications because it gives agents real-world awareness and decision-making power without brittle prompt injection or custom wrappers. Note: MCP is most beneficial for teams building AI agents that need to interact with external APIs or structured data sources; teams with static, unchanging toolsets may not require MCP. (Source)
How do I build an AI agent with TypeScript and MCP as described in the Hygraph guide?
The Hygraph guide walks you through building a TypeScript MCP client from scratch. The process involves: (1) creating an MCP server that exposes tools (e.g., getWeather, searchWeb) via /tools/list and /tools/call endpoints, (2) building a Node.js backend client that accepts user messages, communicates with an AI model (such as AWS Bedrock running Claude), parses responses for tool calls, and interacts with the MCP server, and (3) connecting everything in a lightweight Express app with minimal React frontend. The guide emphasizes managing the full conversation server-side to prevent prompt injection attacks. For a full walkthrough, see the original blog post and livestream replay. Note: This approach requires familiarity with Node.js, TypeScript, and basic API development.
How can I extend my AI agent to access Hygraph content using MCP?
To extend your AI agent with Hygraph, you can plug in Hygraph’s MCP server by adding a single line to your configuration. This enables your agent to access Hygraph content models, run queries, and manipulate schema inside a real CMS. This is especially useful for projects involving content or structured data. For more details, see the "Step 4: Extend with Hygraph MCP" section in the Hygraph blog post. Note: Integration requires access to Hygraph and understanding of MCP server configuration.
What are the security best practices when building AI agents with MCP and Hygraph?
When building AI agents with MCP and Hygraph, it is recommended to manage the full conversation server-side to prevent prompt injection attacks. Do not expose the full message history to the frontend. Additionally, Hygraph provides enterprise-grade security features such as SOC 2 Type 2 compliance (achieved August 3, 2022), ISO 27001 certification, GDPR compliance, granular permissions, SSO integrations, audit logs, encryption in transit and at rest, and regular backups. For more details, see the Hygraph Secure Features page. Note: Always review your own security requirements and consult Hygraph documentation for the latest practices.
Features & Capabilities
What APIs does Hygraph provide for developers and AI integrations?
Hygraph offers several APIs: (1) GraphQL Content API for querying and manipulating content, optimized for high performance and low latency; (2) Management API for handling project structure, accessible via the Management SDK; (3) Asset Upload API for uploading files from local or remote sources; and (4) MCP Server API for secure communication between AI assistants and Hygraph via the Model Context Protocol. For full details, see the API Reference documentation. Note: Some APIs may require specific project configurations or permissions.
What integrations are available with Hygraph for AI and content workflows?
Hygraph supports integrations with Digital Asset Management (DAM) systems (Aprimo, AWS S3, Bynder, Cloudinary, Imgix, Mux, Scaleflex Filerobot), hosting and deployment platforms (Netlify, Vercel), Product Information Management (Akeneo), commerce solutions (BigCommerce), translation/localization (EasyTranslate), and others (Adminix, Plasmic). For a complete list, visit the Hygraph Marketplace. Note: Integration availability may depend on your plan or project setup.
What performance optimizations does Hygraph offer for AI and content delivery?
Hygraph provides high-performance endpoints optimized for low latency and high read-throughput content delivery. The platform includes a read-only cache endpoint with 3-5x latency improvement, and actively measures GraphQL API performance, offering practical advice for developers. For more details, see the performance improvements blog post and GraphQL Report 2024. Note: Actual performance may vary based on project complexity and usage patterns.
Use Cases & Benefits
Who can benefit from using Hygraph for AI and content management?
Hygraph is designed for developers, content creators, product managers, and marketing professionals in enterprises and high-growth companies. It is suitable for industries such as SaaS, eCommerce, media, healthcare, automotive, and more. Hygraph is especially beneficial for teams needing advanced content management, AI integrations, and scalable digital experiences. Note: Teams with highly specialized, non-GraphQL workflows may require additional customization.
What business impact have customers seen using Hygraph?
Customers have reported faster time-to-market (e.g., Komax achieved 3x faster launches across 40+ markets), improved customer engagement (Samsung saw a 15% increase), cost reduction, and enhanced content consistency. Other examples include AutoWeb's 20% increase in website monetization and Voi scaling multilingual content across 12 countries. For more, see Hygraph case studies. Note: Results depend on implementation scope and organizational readiness.
What are some real-world use cases for Hygraph's AI and MCP features?
Hygraph's AI and MCP features support use cases such as building AI agents that interact with external APIs, automating content workflows, enabling mass localization (see "Mass localization made simple with Hygraph MCP and Claude"), and migrating eCommerce product data using Claude Code and MCP. These capabilities are demonstrated in Hygraph's blog and livestreams. Note: Some advanced use cases may require custom development or integration work.
Support, Documentation & Onboarding
What technical documentation is available for building with Hygraph and MCP?
Hygraph provides extensive technical documentation, including API references, schema component guides, integration tutorials (e.g., Mux, Akeneo, Auth0), and dedicated AI/MCP documentation. Key resources include the API Reference, MCP Server Documentation, and AI Agents Documentation. For onboarding, see the Getting Started guide. Note: Some documentation is specific to Hygraph Classic or advanced features.
How long does it take to implement Hygraph and start building with MCP?
Implementation timelines vary by project complexity. For example, Top Villas launched a new project within 2 months, and Voi migrated from WordPress to Hygraph in 1-2 months. Hygraph offers structured onboarding, starter projects, and community support to accelerate adoption. For more, see the Getting Started guide and starter projects. Note: Large-scale or highly customized projects may require additional time.
Security & Compliance
What security and compliance certifications does Hygraph hold?
Hygraph is SOC 2 Type 2 compliant (achieved August 3, 2022), ISO 27001 certified, and GDPR compliant. These certifications cover both the platform and hosting infrastructure, ensuring adherence to international standards for information security and data privacy. For more, see the Hygraph Secure Features page. Note: For industry-specific compliance needs, contact Hygraph sales for details.
Customer Success & Social Proof
Can you share examples of customers using Hygraph for AI and content management?
Notable customers include Samsung (15% improved engagement), Komax (3x faster time-to-market), AutoWeb (20% increase in monetization), Voi (scaled content across 12 countries), Dr. Oetker, BioCentury, HolidayCheck, and Lindex Group. For detailed stories, visit the Hygraph case studies page. Note: Outcomes vary by use case and implementation.
Dino, Staff Engineer at Hygraph and the lead behind our AI Labs initiative, walks you through how to build a working TypeScript MCP client from scratch.
Last updated by Enxhi
on Jan 21, 2026
Originally written by Enxhi
If you're experimenting with AI agents and looking to move beyond simple LLM prompts, this guide is for you. In this session, Dino, Staff Engineer at Hygraph and the lead behind our AI Labs initiative, walks you through how to build a working TypeScript MCP client from scratch.
We’re going hands-on. No fluff, just real code. By the end, you’ll understand how to connect an AI model with external tools and APIs using the Model Context Protocol (MCP) and why that matters for building powerful AI-native applications.
MCP (Model Context Protocol) is a standard that lets LLMs (called MCP clients) discover and use external tools dynamically. Instead of hardcoding a fixed set of functions, you expose a list of tools at runtime, and the AI knows what it can call based on the server’s capabilities.
MCP unlocks:
Dynamic tool discovery
Standardized schemas
Plug-and-play agent extensions
In short, it gives your AI superpowers without relying on brittle prompt injection or custom wrappers.
Start by creating a small server that exposes two tools:
getWeather (calls a weather API)
searchWeb (mocked to show error handling)
Here’s what you need:
Define a /tools/list endpoint that returns JSON schema for each tool
Implement a /tools/call endpoint that parses the AI’s request and performs the right action
Dino used the OpenMeteo API for weather data and wrote basic logic to transform locations into coordinates, query the forecast, and return readable results.
Next, you'll build the MCP client, which is technically your Node.js backend. It:
Accepts messages from the user via HTTP
Sends messages to the AI model (in this case, AWS Bedrock running Claude)
Parses responses and checks for tool calls
If needed, calls the MCP server and sends results back to the AI for final output
The conversation loop looks like this:
User says “What’s the weather in Berlin?”
AI responds: “I’ll use the weather tool”
AI emits tool call: getWeather({ location: "Berlin" })
Node.js client invokes the MCP server and sends results back to the AI
AI finalizes the response and replies to the user
Important: Dino used stdin/stdout as the transport protocol between client and MCP server for simplicity. MCP also supports HTTP if you're going the API route.
At the end of the livestream, Dino showed how easy it is to plug in Hygraph’s own MCP server. With one line added to your config, your AI agent can start accessing content models, running queries, and manipulating schema inside a real CMS.
If you’re building anything that touches content or structured data, this is where things get really exciting.
LLMs are only as smart as the context and tools you give them. By integrating with MCP, your AI agents gain real-world awareness, decision-making power, and dynamic capabilities that go far beyond chat.
Whether you’re building internal automations, dev tools, or next-gen CMS experiences, the TypeScript MCP client approach gives you full control and flexibility.
→Want to see it in action?Watch the livestream with Dino to follow along as he builds and debugs live.
→Curious about AI-native content management? Check out hygraph.ai to explore our vision for building with AI and structured content at the core.
Blog Author
Enxhi Hamzallari
Sr. Field Marketing Manager
Enxhi is the Senior Field Marketing Manager at Hygraph. When she’s not bringing people together through content and events, you’ll find her dancing the night away or cheering on her favorite drag queens.
Share with others
Sign up for our newsletter!
Be the first to know about releases and industry news and insights.
Dino, Staff Engineer at Hygraph and the lead behind our AI Labs initiative, walks you through how to build a working TypeScript MCP client from scratch.
Last updated by Enxhi
on Jan 21, 2026
Originally written by Enxhi
If you're experimenting with AI agents and looking to move beyond simple LLM prompts, this guide is for you. In this session, Dino, Staff Engineer at Hygraph and the lead behind our AI Labs initiative, walks you through how to build a working TypeScript MCP client from scratch.
We’re going hands-on. No fluff, just real code. By the end, you’ll understand how to connect an AI model with external tools and APIs using the Model Context Protocol (MCP) and why that matters for building powerful AI-native applications.
MCP (Model Context Protocol) is a standard that lets LLMs (called MCP clients) discover and use external tools dynamically. Instead of hardcoding a fixed set of functions, you expose a list of tools at runtime, and the AI knows what it can call based on the server’s capabilities.
MCP unlocks:
Dynamic tool discovery
Standardized schemas
Plug-and-play agent extensions
In short, it gives your AI superpowers without relying on brittle prompt injection or custom wrappers.
Start by creating a small server that exposes two tools:
getWeather (calls a weather API)
searchWeb (mocked to show error handling)
Here’s what you need:
Define a /tools/list endpoint that returns JSON schema for each tool
Implement a /tools/call endpoint that parses the AI’s request and performs the right action
Dino used the OpenMeteo API for weather data and wrote basic logic to transform locations into coordinates, query the forecast, and return readable results.
Next, you'll build the MCP client, which is technically your Node.js backend. It:
Accepts messages from the user via HTTP
Sends messages to the AI model (in this case, AWS Bedrock running Claude)
Parses responses and checks for tool calls
If needed, calls the MCP server and sends results back to the AI for final output
The conversation loop looks like this:
User says “What’s the weather in Berlin?”
AI responds: “I’ll use the weather tool”
AI emits tool call: getWeather({ location: "Berlin" })
Node.js client invokes the MCP server and sends results back to the AI
AI finalizes the response and replies to the user
Important: Dino used stdin/stdout as the transport protocol between client and MCP server for simplicity. MCP also supports HTTP if you're going the API route.
At the end of the livestream, Dino showed how easy it is to plug in Hygraph’s own MCP server. With one line added to your config, your AI agent can start accessing content models, running queries, and manipulating schema inside a real CMS.
If you’re building anything that touches content or structured data, this is where things get really exciting.
LLMs are only as smart as the context and tools you give them. By integrating with MCP, your AI agents gain real-world awareness, decision-making power, and dynamic capabilities that go far beyond chat.
Whether you’re building internal automations, dev tools, or next-gen CMS experiences, the TypeScript MCP client approach gives you full control and flexibility.
→Want to see it in action?Watch the livestream with Dino to follow along as he builds and debugs live.
→Curious about AI-native content management? Check out hygraph.ai to explore our vision for building with AI and structured content at the core.
Blog Author
Enxhi Hamzallari
Sr. Field Marketing Manager
Enxhi is the Senior Field Marketing Manager at Hygraph. When she’s not bringing people together through content and events, you’ll find her dancing the night away or cheering on her favorite drag queens.
Share with others
Sign up for our newsletter!
Be the first to know about releases and industry news and insights.