Token导航 LogoToken导航TokenDH.com
Api2 MCP Tools logo
开发工具stdio官方级别未说明来源级核验

Api2 MCP Tools

MCP Server

@terryliyongjie/api2mcptools

一个将API转换为MCP(模型上下文协议)工具的Node.js包,支持多种API类型,易于与MCP生态系统集成。

工具数

0

提示词数

0

GitHub Stars

5

资源数

0
API转换开发工具JavaScript

安装说明

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

作者 / 组织

JayLi52

提供方

JayLi52

最后核验

2026/5/17 20:23

运行时

Node.js

快速接入

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

命令预览

npx @terryliyongjie/api2mcptools

详细介绍

@terryliyongjie/api2mcp工具

中文文档

](https://smithery.ai/server/@JayLi52/api2mcptools) ![Model Context Protocol](https://modelcontextprotocol.org)

一个将API转换为MCP(模型上下文协议)工具的Node.js包。

CherryStudio Example Configuration

安装

选项1:npx快速入门(推荐)

set CONFIG_JSON_PATH=example.json
npx @terryliyongjie/api2mcptools

选项2:传统安装

# Install locally in your project
npm install @terryliyongjie/mcp-tools

# Or install globally to use as a CLI tool
npm install -g @terryliyongjie/mcp-tools

配置

环境变量

# Required: Path to your configuration JSON file
CONFIG_JSON_PATH=example.json

配置文件示例(example.json):

// Single tool configuration
{
    "name": "tool_name",
    "description": "Tool description",
    "inputSchema": {
        "type": "object",
        "properties": {
            "param1": {
                "type": "string",
                "description": "Parameter description"
            }
        },
        "required": ["param1"]
    },
    "axiosConfig": {
        "url": "https://api.example.com/endpoint",
        "method": "get",
        "params": {
            "key": "your_api_key"
        }
    }
}

// Or multiple tools configuration
[
    {
        "name": "baidu_place_search",
        "description": "使用百度地图API进行地点检索服务",
        "inputSchema": {
            "type": "object",
            "properties": {
                "query": {
                    "type": "string",
                    "description": "检索关键字"
                },
                "region": {
                    "type": "string",
                    "description": "检索行政区划区域"
                }
            },
            "required": ["query", "region"]
        },
        "axiosConfig": {
            "url": "https://api.map.baidu.com/place/v2/search",
            "method": "get",
            "params": {
                "ak": "your_baidu_map_key"
            }
        }
    },
    // More tools...
]

特性

  • 将JSON API转换为MCP工具
  • 易于与MCP生态系统集成
  • 支持各种API类型
  • 命令行界面(CLI)支持

用法

作为CLI工具

全局安装后,您可以直接在终端中使用该命令:

mcp-tools [options]

作为一个模块

// Example code coming soon

发展

# Install dependencies
npm install

# Build the project
npm run build

# Run in development mode
npm run dev

# Watch mode during development
npm run watch

# Run MCP inspector
npm run inspector

许可证

麻省理工学院

目录标签

目录标签

API转换开发工具JavaScript本地部署MCP工具Node.js包

接入字段

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

stdio

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

none

运行时(runtime,运行环境)

Node.js

来源包(packageName,安装包名)

@terryliyongjie/api2mcptools

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

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

0

权限和风险

stdionone部署方式未说明

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

安装前确认

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

来源信息

继续浏览同类 MCP