NN

niledatabase/nile-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

19 stars 10 forks 质量 68 趋势 22MIT

尼罗州数据库的 MCP 服务器 - 管理和查询数据库、租户、用户、使用 LLMS 的认证

概览

Nile MCP 服务器更多学习 QQ Discord QQ网站 QQ问题 尼罗河数据库平台的模型背景协议(MCP)服务器实施. 这个服务器允许LLM应用程序通过标准化的接口与尼罗河平台互动. - :创建,列表,获取细节,并删除数据库 - :创建和列表数据库资质 - :列出数据库创建可用的区域 - :直接在尼罗州数据库上执行SQL查询 - :完全执行"模式背景协议" - :在TypeScript中用全类型检查写入 - :综合错误处理和方便用户的错误消息 - :使用Jest的综合测试套件 - :从.env文件中自动加载环境变量 - :使用Zod进行基于Schema的输入验证 这将在您的节点模块文件夹中安装 @ niledatabase/ nile- mcp- server 。 例如:节点 模块/@nile数据库/nile-mcp-server/dist/ 1. 联合国.

概述(AI 翻译)

Nile MCP 服务器

学多点

调色板 🔵 网站 🔵 问题

尼罗河数据库平台的模型背景协议(MCP)服务器实施. 这个服务器允许LLM应用程序通过标准化的接口与尼罗河平台互动.

□ 特性

  • 数据库管理: 创建、列表、获取细节并删除数据库
  • ** 信誉管理**: 创建和列出数据库证书
  • ** 区域管理**: 列出可用于创建数据库的区域
  • SQL查询支助:直接在尼罗河数据库中执行SQL查询
  • ** MCP议定书支助**:充分执行示范背景议定书
  • ** 类型安全**: 以类型脚本写入, 并进行完整类型检查
  • ** 不当处理**: 全面处理错误和方便用户的错误信息
  • ** 试验覆盖范围**:使用杰斯特的综合试验套件
  • ** 环境管理**: 从.env 文件自动加载环境变量
  • ** 输入验证**:使用Zod进行基于Schema的输入验证

□ 安装

安装稳定版本 :

最新的α/预览版本:

这将在您的节点模块文件夹中安装 @ niledatabase/ nile- mcp- server .

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Nile MCP Server

Learn more ↗️

Discord 🔵 Website 🔵 Issues

A Model Context Protocol (MCP) server implementation for Nile database platform. This server allows LLM applications to interact with Nile platform through a standardized interface.

Features

  • Database Management: Create, list, get details, and delete databases
  • Credential Management: Create and list database credentials
  • Region Management: List available regions for database creation
  • SQL Query Support: Execute SQL queries directly on Nile databases
  • MCP Protocol Support: Full implementation of the Model Context Protocol
  • Type Safety: Written in TypeScript with full type checking
  • Error Handling: Comprehensive error handling and user-friendly error messages
  • Test Coverage: Comprehensive test suite using Jest
  • Environment Management: Automatic loading of environment variables from .env file
  • Input Validation: Schema-based input validation using Zod

Installation

Install the stable version:

npm install @niledatabase/nile-mcp-server

For the latest alpha/preview version:

npm install @niledatabase/nile-mcp-server@alpha

This will install @niledatabase/nile-mcp-server in your node_modules folder. For example: node_modules/@niledatabase/nile-mcp-server/dist/

Manual Installation

# Clone the repository
git clone https://github.com/yourusername/nile-mcp-server.git
cd nile-mcp-server

# Install dependencies
npm install

# Build the project
npm run build

Other mcp package managers

  1. npx @michaellatman/mcp-get@latest install @niledatabase/nile-mcp-server

Starting the Server

There are several ways to start the server:

  1. Direct Node Execution:
    node dist/index.js
    
  2. Development Mode (with auto-rebuild):
    npm run dev
    

The server will start and listen for MCP protocol messages. You should see startup logs indicating:

  • Environment variables loaded
  • Server instance created
  • Tools initialized
  • Transport connection established

To stop the server, press Ctrl+C.

Verifying the Server is Running

When the server starts successfully, you should see logs similar to:

[info] Starting Nile MCP Server...
[info] Loading environment variables...
[info] Environment variables loaded successfully
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "nile-database": { "command": "node", "args": [ "/path/to/your/nile-mcp-server/dist/index.js" ], "env": { "NILE_API_KEY": "your_api_key_here", "NILE_WORKSPACE_SLUG": "your_workspace_slug" } } } }