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)#
Option 2: NPM (Recommended for Claude Desktop usage)#
Option 3: Install from Source#
Quick Start#
1. Obtain Your Access Token#
2. Configure Claude Desktop#
3. Restart Claude Desktop#
Your Nife.io MCP integration will now be active.
Usage#
Starting the Server#
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#
Architecture#
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#
Project Structure#
Running Tests#
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