Nife.io MCP Server
A Model Context Protocol (MCP) server that interfaces with the Nife.io GraphQL API
Installation β’ Quick Start β’ Documentation β’ Contributing
Overviewβ
The Nife.io MCP Server provides a standardized interface for interacting with the Nife.io GraphQL API through the Model Context Protocol. It enables seamless usage within Claude Desktop and other MCP-compatible clients, ensuring a consistent, secure, and efficient integration experience.
Key Featuresβ
- Intelligent GraphQL schema discovery and adaptation
- Dynamic MCP tool generation based on schema
- Minimal configuration and fast setup
- Secure authentication using bearer tokens
- Installable via PyPI, NPM, or directly from source
- Compatible with macOS, Linux, and Windows
- Production-grade error handling and logging
Installationβ
Option 1: PyPI (Recommended for Python environments)β
pip install nife-mcp-server
Option 2: NPM (Recommended for Claude Desktop usage)β
npx @nifelabs/mcp-server
Option 3: Install From Sourceβ
git clone https://github.com/nife-io/nife-mcp-server.git
cd nife-mcp-server
pip install -r requirements.txt
Quick Startβ
1. Obtain Your Access Tokenβ
nifectl auth login
nifectl auth token
2. Configure Claude Desktopβ
{
"mcpServers": {
"nife": {
"command": "npx",
"args": ["-y", "@nife/mcp-server"],
"env": {
"NIFE_ACCESS_TOKEN": "your_token_here"
}
}
}
}
3. Restart Claude Desktopβ
Your Nife.io MCP integration will now be active.
Usageβ
Starting the Serverβ
# Installed via pip
nife-mcp-server
# Running from source
python -m nife_mcp_server.intelligent_main
The server will start on:
http://0.0.0.0:5000
Environment Variablesβ
NIFE_ACCESS_TOKENβ Required authentication tokenNIFE_API_ENDPOINTβ Optional custom GraphQL endpoint
Example Prompts for Claudeβ
List all my applications in Nife.io
Show the status of my deployments
Create a new application named "my-app"
Architectureβ
βββββββββββββββββββ
β Claude Desktop β
ββββββββββ¬βββββββββ
β MCP Protocol
ββββββββββΌβββββββββ
β Nife MCP Serverβ
ββββββββββ¬βββββββββ
β GraphQL
ββββββββββΌβββββββββ
β Nife.io API β
βββββββββββββββββββ
Core Componentsβ
- Schema Manager
- MCP Tool Generator
- Query Builder
- Authentication Layer
API Endpointsβ
MCP Endpointsβ
| Endpoint | Method | Description |
|---|---|---|
/api/mcp/context | GET | Retrieve model context |
/api/mcp/context | POST | Update model context |
/api/mcp/schema | GET | Retrieve GraphQL schema |
/api/mcp/query | POST | Execute custom query |
/api/mcp/health | GET | Health check |
GraphQL Capabilitiesβ
- Query all supported resource types
- Execute mutations for resource management
- Run custom queries
- Perform schema introspection
Developmentβ
Local Development Setupβ
git clone https://github.com/nife-io/nife-mcp-server.git
cd nife-mcp-server
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
pip install -e .
python -m nife_mcp_server.intelligent_main
Project Structureβ
nife-mcp-server/
βββ src/
β βββ nife_mcp_server/
β βββ intelligent_main.py
β βββ schema_manager.py
β βββ routes/
β βββ mcp.py
βββ tests/
βββ docs/
βββ bin/
Running Testsβ
pytest
pytest --cov=nife_mcp_server
Supportβ
- GitHub Issues: https://github.com/nife-io/nife-mcp-server/issues
- GitHub Discussions: https://github.com/nife-io/nife-mcp-server/discussions
Made by the Nife.io team
Website β’ Documentation β’ Blog
Related Resourcesβ
- π nife.io β Nife edge cloud platform
- π Launch Dashboard β Access your Nife platform
- π¦ OpenHub β Deploy open source apps in one click