Turn any Nhost project into an agentic service
Blog post from Nhost
AI agents are increasingly being used as interface layers for applications, allowing users to interact with their data through natural language rather than traditional dashboards and forms. Nhost has introduced an open-source service, the Nhost MCP Service, which enables any Nhost project to become an agentic service by exposing GraphQL APIs through the Model Context Protocol (MCP). This protocol allows AI assistants to authenticate via Nhost Auth and interact with data while respecting defined permissions, without requiring custom integration code. The MCP server, which sits between the AI assistant and the GraphQL API, provides tools for schema discovery and executing queries and mutations. The service relies on OAuth2 for authentication, and permissions are enforced based on JWT claims. A reference implementation of the service is available at mcp.nhost.io, and the setup process involves enabling OAuth2, building a consent page, and deploying the MCP service. Nhost encourages feedback from users to evolve the service, with plans to expand permissions and capabilities.