Skip to main content
Glama
LynxBay

magic-api-mcp

by LynxBay

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MAGIC_API_WEBNo管理端路径/magic/web
MAGIC_API_BASEYesmagic-api 地址,如 http://192.168.33.174:31144
MAGIC_API_TOKENNo静态 token
MAGIC_API_PREFIXNo接口路径前缀
MAGIC_API_PASSWORDNo密码
MAGIC_API_READONLYNo只读模式false
MAGIC_API_USERNAMENo账号
MAGIC_API_HTTP_HOSTNohttp 模式监听地址0.0.0.0
MAGIC_API_HTTP_PORTNohttp 模式监听端口3111
MAGIC_API_TRANSPORTNostdio 或 httpstdio
MAGIC_API_ACCESS_TOKENNohttp 模式访问令牌

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_groupsB

列出 magic-api 中所有分组(folder)。

create_groupC

创建分组。type 默认 api。返回新分组 id。

list_apisB

列出所有接口,含 id/name/method/path/runPath/group。可按分组名过滤。

get_apiA

获取接口详情(含脚本)。ref 可为 id、name 或 path。

create_apiA

创建接口。自动建立缺失分组。返回 id 与完整运行路径 runPath。

update_api_scriptB

更新接口脚本。ref 可为 id/name/path。

delete_apiC

删除接口。ref 可为 id/name/path。

run_apiA

运行(测试)接口。向真实路径发请求并返回 status/headers/body。被测接口的错误不算工具错误。

list_functionsB

列出所有 magic-script 函数。

get_functionA

获取函数详情(含脚本)。ref 为 id 或 name。

list_datasourcesB

列出所有数据源。

magic_script_helpB

查询 magic-script 用法(db/http/response/env 模块、请求变量、分页、事务等)。

search_codeC

在所有接口/函数脚本中全局搜索关键词。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LynxBay/magic-api-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server