Token导航 LogoToken导航TokenDH.com
Fx Natives MCP logo
AI代理未说明官方级别未说明来源级核验

Fx Natives MCP

MCP Server

一个为AI开发工作流提供CFX/FiveM/RedM原生方法文档访问的MCP服务器。

工具数

2

提示词数

0

GitHub Stars

0

资源数

0
文档服务TypeScriptClaude游戏开发Claude DesktopClaudeCursorVS Code

安装说明

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

作者 / 组织

AleksanderEvensen

提供方

AleksanderEvensen

最后核验

2026/5/17 20:20

快速接入

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

详细介绍

FX原生MCP

免责声明: 本项目与Cfx.re、Rockstar Games或Take-Two Interactive没有附属关系、认可或关联。

](https://www.npmjs.com/package/fx-natives-mcp) ![License: MIT](https://opensource.org/licenses/MIT)

MCP(模型上下文协议)服务器,为AI助手提供对CFX/FiveM/RedM本机方法文档的访问。直接在AI驱动的开发工作流程中获取准确、最新的本机函数签名和文档。

安装

使用npx

添加到MCP客户端配置中:

{
  "mcpServers": {
    "fx-natives": {
      "command": "npx",
      "args": ["-y", "fx-natives-mcp"]
    }
  }
}

使用Bun(推荐)

{
  "mcpServers": {
    "fx-natives": {
      "command": "bunx",
      "args": ["fx-natives-mcp"]
    }
  }
}

全球安装

npm install -g fx-natives-mcp

然后添加到MCP配置中:

{
  "mcpServers": {
    "fx-natives": {
      "command": "fx-natives-mcp"
    }
  }
}

按编辑器配置

Claude Desktop

添加 ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)或 %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "fx-natives": {
      "command": "npx",
      "args": ["-y", "fx-natives-mcp"]
    }
  }
}

Claude Code

运行以下命令:

claude mcp add fx-natives -- npx -y fx-natives-mcp

或添加到您的 .claude/settings.json:

{
  "mcpServers": {
    "fx-natives": {
      "command": "npx",
      "args": ["-y", "fx-natives-mcp"]
    }
  }
}

Cursor

添加到光标MCP设置中:

{
  "mcpServers": {
    "fx-natives": {
      "command": "npx",
      "args": ["-y", "fx-natives-mcp"]
    }
  }
}

VS Code (Copilot)

添加到您的VS代码设置JSON:

{
  "mcp": {
    "servers": {
      "fx-natives": {
        "command": "npx",
        "args": ["-y", "fx-natives-mcp"]
      }
    }
  }
}

可用工具

search-native

使用模糊匹配搜索本地方法。

参数:

  • query (string)-搜索本机方法查询
  • page (number,可选)-分页结果的页码(默认值:1)

例子:

Search: "get player ped"
Returns: List of matching natives with their hashes

get-native-doc

按名称或哈希获取特定本机的详细文档。

参数:

  • hashOrName (string)-精确的本机名称或哈希值

例子:

Input: "GET_PLAYER_PED" or "0x275F255ED201B937"
Returns: Full documentation with TypeScript and Lua signatures

发展

# Install dependencies
bun install

# Run in development mode
bun run dev

# Run with MCP Inspector
bun run inspect

# Build for production
bun run build

目录标签

目录标签

文档服务TypeScriptClaude游戏开发AI开发辅助本地部署MCP协议

支持客户端

Claude DesktopClaudeCursorVS Code

接入字段

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

未说明

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

none

工具数量(toolCount,工具数)

2

资源数量(resourceCount,资源数)

0

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

0

权限和风险

未说明none部署方式未说明

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

安装前确认

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

仍需确认:installCommand

来源信息

继续浏览同类 MCP