mcp-nhost
A Model Control Protocol (MCP) server implementation for interacting with Nhost Cloud services. This project provides a standardized interface for managing and interacting with Nhost projects, both in the cloud and locally.
Overview
MCP-Nhost is designed to provide a unified interface for managing Nhost projects through the Model Control Protocol. It enables seamless interaction with Nhost Cloud services, offering a robust set of tools for project management and configuration.
Current Features
Nhost Cloud
Project Management
- Query and manage Nhost projects
- Manage project resources and settings
Organization Management
Configuration Management
- Access and modify project configurations
The following tools are currently exposed through the MCP interface:
-
Nhost GraphQL Schema Access
- Retrieve the complete GraphQL schema for Nhost Cloud
- Access type definitions and available operations
-
Nhost GraphQL Query Execution
- Execute queries against Nhost Cloud
- Perform operations on projects and organizations
- Manage configurations and settings
Roadmap
Phase 1: Cloud Integration (Current)
- β
Basic project and organization management
- β
Configuration management
Phase 2: CLI Integration (Coming Soon)
- π Local project management
- π Development environment configuration
Phase 3: Development Workflows (Planned)
- π Manage migrations
- π Manage permissions
- π Schema-awareness for developmenet workflows
Phase 4: Production integration (Planned)
- π Integration with production projects via Graphite for building agents effortlessly
Installing
To install mcp-nhost, you can use the following command:
sudo curl -L https://raw.githubusercontent.com/nhost/mcp-nhost/main/get.sh | bash
Upgrading
To upgrade mcp-nhost, you can use the following command:
sudo mcp-nhost upgrade --confirm
Getting Started
After installing mcp-nhost, you will need to do two things to get things up and running:
- Create a Personal Access Token (PAT) in your Nhost account.
- Configure your mcp-nhost client (i.e. Cursor, etc.)
Create a PAT
In order to use mcp-nhost, you need to create a Personal Access Token (PAT) in your Nhost account. You can do this by following these steps:
- Go to https://app.nhost.io/account
- Scroll don to "Personal Access Tokens" and create a new token. Write down the token as you will need it later.
- Proceed to configure your mcp-nhost client (instructions for some below).
Configuring clients
Cursor
- Go to "Cursor Settings"
- Click on "MCP"
- Click on "+ Add new global MCP server"
- Add the following object inside
"mcpServers":
"mcp-nhost": {
"command": "/usr/local/bin/mcp-nhost",
"args": ["start"],
"env": {
"NHOST_PAT": "<here-goes-your-pat>"
}
}
Contributing
We welcome contributions to mcp-nhost! If you have suggestions, bug reports, or feature requests, please open an issue or submit a pull request.