Token导航 LogoToken导航TokenDH.com
Edgedb MCP Server logo
数据服务stdio官方级别未说明来源级核验

Edgedb MCP Server

MCP Server

@obiwan90/edgedb-mcp-server@latest

EdgeDB MCP Server is a tool based on the Model Context Protocol (MCP) that provides query and management capabilities for EdgeDB databases.

工具数

12

提示词数

0

GitHub Stars

0

资源数

0
数据分析TypeScriptCursorCursor

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

obiwan90

提供方

obiwan90

最后核验

2026/5/18 02:53

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npx -y @obiwan90/edgedb-mcp-server@latest {}

详细介绍

](https://www.npmjs.com/package/@obiwan90/edgedb-mcp-server) ![下载总量](https://www.npmjs.com/package/@obiwan90/edgedb-mcp-server) ![许可证](https://github.com/obiwan90/mcp-server-edgedb/blob/main/LICENSE) ![包大小](https://bundlephobia.com/package/@obiwan90/edgedb-mcp-server)

@obiwan90/edgedb-mcp服务器

EdgeDB MCP Server是一个基于模型上下文协议(MCP)的工具,为EdgeDB数据库提供查询和管理功能。它可以用作命令行工具,也可以作为库集成到其他项目中。

特性

  • 数据库管理工具

- 连接到数据库(支持DSN和实例名称) - 列出可用数据库 - 创建新数据库 - 切换当前数据库 - 获取当前数据库信息

  • 查询工具

- 执行EdgeQL查询 - 使用参数执行EdgeQL查询 - 查找单个记录 - 查找多条记录(具有过滤、排序、分页功能)

  • 架构管理工具

- 列表类型(可选包括系统类型) - 获取类型详细信息 - 比较模式结构

安装

临时执行(不安装)

npx -y @obiwan90/edgedb-mcp-server@latest

全球安装

npm install -g @obiwan90/edgedb-mcp-server

作为项目依赖

npm install @obiwan90/edgedb-mcp-server

用法

命令行用法

# If installed globally
edgedb-mcp-server

# Or via npx for temporary execution
npx -y @obiwan90/edgedb-mcp-server

整合为图书馆

import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { registerAllTools } from "@obiwan90/edgedb-mcp-server/build/tools/index.js";
import { registerAllResources } from "@obiwan90/edgedb-mcp-server/build/resources/index.js";

// Initialize MCP server
const server = new McpServer({
    transport: new StdioServerTransport(),
    name: "EdgeDB MCP Server",
    description: "Providing EdgeDB database services through MCP protocol",
    version: "1.0.0"
});

// Register resources and tools
registerAllResources(server);
registerAllTools(server);

// Start the server
(async function() {
    try {
        const transport = new StdioServerTransport();
        await server.connect(transport);
        console.log("MCP server connected, waiting for client requests...");
    } catch (error) {
        console.error("Server startup failed:", error);
        process.exit(1);
    }
})();

环境变量

  • EDGEDB_DSN -EdgeDB数据库连接字符串
  • EDGEDB_INSTANCE -EdgeDB实例名称
  • DEBUG -启用调试模式(真/假)
  • LOG_LEVEL -日志级别(默认值:info)

项目开发

目录结构

src/
├── config/           # Configuration management
├── resources/        # MCP resource definitions
├── services/         # Service layer (EdgeDB connection management)
├── tools/            # MCP tool definitions
│   ├── database.ts   # Database management tools
│   ├── query.ts      # Query tools
│   ├── schema.ts     # Schema management tools
│   └── index.ts      # Tool exports
├── types/            # Type definitions
├── utils/            # Utility functions
└── index.ts          # Application entry point

建设项目

# Clone the project
git clone https://github.com/obiwan90/mcp-server-edgedb.git
cd mcp-server-edgedb

# Install dependencies
npm install

# Build the project
npm run build

# Start the service
npm start

光标集成

要将此MCP服务器与游标编辑器集成,请执行以下步骤:

  1. 编辑Cursor的MCP配置文件(~/.cursor/mcp.json)
  2. 添加以下配置:
"edgedb-server": {
  "command": "npx",
  "args": [
    "-y",
    "@obiwan90/edgedb-mcp-server@latest"
  ]
}
"edgedb-server": {
  "command": "npx",
  "args": [
    "-y",
    "@obiwan90/edgedb-mcp-server@latest",
    "--instanceName",
    "your-instance-name"
  ]
}
  1. 重新启动光标编辑器
  2. 现在,您可以在Cursor中使用EdgeDB工具!通过命令面板(Cmd+Shift+P)搜索“EdgeDB”或通过聊天界面访问它们。
Cursor dialog box input:

mcp_edgedb-server_connectEdgeDB(instanceName="your-instance-name")

许可证

该项目根据 MIT许可证.

目录标签

目录标签

数据分析TypeScriptCursor数据库管理本地部署EdgeDB工具MCP协议查询工具模式管理

支持客户端

Cursor

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Node.js

来源包(packageName,安装包名)

@obiwan90/edgedb-mcp-server@latest

工具数量(toolCount,工具数)

12

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP