Nife

com.nifetency由 nifetency.com 发布官方发布者v1.2.0更新于 Nov 7, 2026

Manage Nife.io cloud apps, sites, secrets and Git integrations from MCP clients.

已验证Streamable HTTP可网页运行云端与基础设施开发者工具

概览

AI 生成的概览

将助手接入 Nife.io 的 GraphQL API,用于查看、创建和管理云端应用、站点、部署、密钥与 Git 集成。

可以做什么
  • 列出并查看应用、站点、部署等 Nife.io 资源
  • 通过 GraphQL mutation 创建、更新和删除资源
  • 执行自定义 GraphQL 查询并读取 schema 结构
  • 根据发现的 schema 动态生成 MCP 工具
适用场景
适合在 Nife.io 上托管应用或站点、希望助手直接查看部署状态、创建或修改应用,或在不离开对话的情况下对账户执行临时 GraphQL 查询的场景。
运行要求
需要 Nife.io 账户及访问令牌(通过 nifectl 命令行获取),以 NIFE_ACCESS_TOKEN 环境变量提供;需能访问 Nife.io 的 GraphQL API。远程托管连接器通过 OAuth 访问;本地运行按安装方式需要 Python 或 Node.js。
安装前请注意
该令牌可访问你的 Nife.io 账户,服务器还能执行创建、更新、删除应用、站点和密钥的 mutation,助手所做的更改会真实生效。自定义查询执行和按 schema 生成工具会扩大助手可操作的范围。请将访问令牌视为机密,并在批准前确认删除类操作。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Nife,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/com.nifetency%2Fnife-mcp-server/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "nife": {
      "type": "http",
      "url": "https://mcp.on.nifetency.com/mcp"
    }
  }
}

README

Nife.io MCP Server

[Python] [License: MIT] [Downloads] [Code style: black]

A Model Context Protocol (MCP) server that interfaces with the Nife.io GraphQL API

Installation • Quick Start • Documentation • Contributing


Overview

Nife MCP Server provides a standardized interface to interact with Nife.io's GraphQL API through the Model Context Protocol, enabling seamless integration with Claude Desktop and other MCP-compatible applications.

Key Features

  • Intelligent Schema Discovery - Automatically discovers and adapts to the GraphQL schema
  • Dynamic Tool Generation - Creates MCP tools on-the-fly from schema
  • Zero Configuration - Works out of the box with minimal setup
  • Secure Authentication - Bearer token support with flexible configuration
  • Multiple Install Methods - PyPI, NPM, or GitHub
  • Cross-Platform - Works on macOS, Linux, and Windows
  • Production Ready - Comprehensive error handling and logging

Installation

Option 1: PyPI (Recommended for Python users)

bash
pip install nife-mcp-server

Option 2: NPM (Best for Claude Desktop)

bash
npx @nifelabs/mcp-server@latest

Option 3: From Source

bash
git clone https://github.com/nifetency/nife-mcp-servercd nife-mcp-serverpip install -r requirements.txt

Quick Start

1. Get Your Access Token

bash
nifectl auth loginnifectl auth token

2. Configure Claude Desktop

You can use the Nife MCP Server in three ways depending on your setup.


1. Recommended: Using NPX (No Installation Required)

This is the easiest way to get started.

json
{  "mcpServers": {    "nife": {      "command": "npx",      "args": ["--yes", "@nifelabs/mcp-server@latest"],      "env": {        "NIFE_ACCESS_TOKEN": "your_token_here",        "PYTHON": "PYTHON_PATH"
      }    }  }}

2. Using Python (Installed via pip)

If you installed the package via pip:

bash
pip install nife-mcp-server

Use this configuration:

json
{  "mcpServers": {    "nife": {      "command": "python",      "args": ["-m", "nife_mcp_server"],      "env": {        "NIFE_ACCESS_TOKEN": "your_token_here"      }    }  }}

3. Local Development (Source Code)

If you're running from source:

json
{  "mcpServers": {    "nife": {      "command": "python",      "args": ["-m", "nife_mcp_server.intelligent_main"],      "env": {        "PYTHONPATH": "C:\\path\\to\\nife-mcp-server\\src",        "NIFE_ACCESS_TOKEN": "your_token_here"      }    }  }}

Replace the PYTHONPATH with your local project path.


Environment Variables

Variable Description


NIFE_ACCESS_TOKEN Your API access token from Nife


3. Restart Claude Desktop

Your Nife.io integration is now active! 🎉

📚 Documentation

Usage

Starting the Server

bash
# If installed via pipnife-mcp-server
# If running from sourcepython -m nife_mcp_server.intelligent_main

The server speaks MCP over stdin/stdout, so it is normally launched by your MCP client (e.g. Claude Desktop) rather than run by hand. It does not listen on a network port.

To run the hosted HTTP connector instead, install the http extra (pip install "nife-mcp-server[http]") and run nife-mcp-http. It listens on PORT (default 8000); see HOSTED.md.

Environment Variables

  • NIFE_ACCESS_TOKEN - Your Nife.io access token

The GraphQL endpoint is fixed to https://api.nife.io/graphql. The hosted connector has its own settings, listed in HOSTED.md.

Example Usage with Claude

Once configured, you can ask Claude:

"List all my applications in Nife.io""Show me the status of my deployments""Create a new application called 'my-app'"

Architecture

┌─────────────────┐│  Claude Desktop │└────────┬────────┘         │ MCP Protocol┌────────▼────────┐│  Nife MCP Server│└────────┬────────┘         │ GraphQL┌────────▼────────┐│   Nife.io API   │└─────────────────┘

Core Components

  • Schema Manager - Intelligent GraphQL schema introspection
  • Tool Generator - Dynamic MCP tool creation
  • Query Builder - Smart query construction
  • Authentication - Secure token management

API Endpoints

MCP Endpoints

EndpointMethodDescription
/api/mcp/contextGETRetrieve model context
/api/mcp/contextPOSTUpdate model context
/api/mcp/schemaGETGet GraphQL schema
/api/mcp/queryPOSTExecute custom queries
/api/mcp/healthGETHealth check

GraphQL Integration

The server provides full access to Nife.io's GraphQL API:

  • Query all resources (apps, deployments, etc.)
  • Execute mutations (create, update, delete)
  • Custom query execution
  • Schema introspection

Development

Setup Development Environment

bash
# Clone the repositorygit clone https://github.com/nifetency/nife-mcp-servercd nife-mcp-server
# Create virtual environmentpython -m venv .venvsource .venv/bin/activate  # On Windows: .venv\Scripts\activate
# Install dependenciespip install -r requirements.txtpip install -e .  # Install in editable mode


# Run the servercd srcpython -m nife_mcp_server.intelligent_main

Project Structure

nife-mcp-server/├── src/│   └── nife_mcp_server/│       ├── intelligent_main.py  # Main server logic│       ├── schema_manager.py    # GraphQL schema handling│       ├── http_app.py          # Hosted (Streamable HTTP) connector│       ├── http_auth.py         # Auth for the hosted connector│       ├── oauth.py             # OAuth support│       ├── site_tools.py        # Additional site tools│       └── routes/│           └── mcp.py          # MCP route handlers├── tests/                      # Test suite├── Dockerfile                  # Container image for the hosted server└── bin/                        # Executable scripts

Running Tests

bash
pytestpytest --cov=nife_mcp_server  # With coverage

Contributing

We love contributions! Please see our Contributing Guide for details.

Ways to Contribute

  • Report bugs
  • Suggest features
  • Improve documentation
  • Submit pull requests

Development Process

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests
  5. Submit a pull request

Stats

[GitHub stars] [GitHub forks] [GitHub issues] [GitHub pull requests]

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Support

Roadmap

  • WebSocket support for real-time updates
  • GraphQL subscriptions
  • Enhanced caching layer
  • Query batching
  • Metrics and monitoring
  • Docker Compose examples
  • Kubernetes manifests

Star History

If you find this project useful, please consider giving it a star!

[Star History Chart]


Made by the Nife.io team

Website • Documentation • Blog • MCP Open Source

来源:README.md,提交 1f473b9

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

1
  1. v1.2.0最新Nov 7, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分