AI Meta MCP Server

by alxspiker
Verified

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Provides a runtime environment for executing custom tools written in JavaScript code, with appropriate sandboxing for security

  • Enables installation and execution of the MCP server through npm package management

  • Offers a runtime environment for executing custom tools implemented in Python, which can be enabled through configuration

AI Meta MCP 服务器

动态 MCP 服务器,允许 AI 模型通过元函数架构创建并执行自定义工具。该服务器提供了一种机制,允许 AI 通过在运行时定义自定义函数来扩展自身功能。

特征

  • 动态工具创建:AI 可以通过自定义实现来定义新工具
  • 多运行环境:支持 JavaScript、Python 和 Shell 执行
  • 沙盒安全:工具在隔离的沙盒中运行以确保安全
  • 持久性:在会话之间存储和加载自定义工具定义
  • 灵活的工具注册表:管理、列出、更新和删除自定义工具
  • 人工审批流程:工具创建和执行需要明确的人工审批

安全注意事项

⚠️警告:此服务器允许动态代码执行。请谨慎使用,并仅在受信任的环境中使用。

  • 所有代码都在沙盒环境中执行
  • 工具创建和执行需要人工审核
  • 可通过环境变量配置工具执行权限
  • 所有操作的审计日志

安装

npm install ai-meta-mcp-server

用法

运行服务器

npx ai-meta-mcp-server

配置

环境变量:

  • ALLOW_JS_EXECUTION :启用 JavaScript 执行(默认值:true)
  • ALLOW_PYTHON_EXECUTION :启用 Python 执行(默认值:false)
  • ALLOW_SHELL_EXECUTION :启用 Shell 执行(默认值:false)
  • PERSIST_TOOLS :在会话之间保存工具(默认值:true)
  • TOOLS_DB_PATH :存储工具数据库的路径(默认值:“./tools.json”)

使用 Claude Desktop 运行

将其添加到您的claude_desktop_config.json中:

{ "mcpServers": { "ai-meta-mcp": { "command": "npx", "args": ["-y", "ai-meta-mcp-server"], "env": { "ALLOW_JS_EXECUTION": "true", "ALLOW_PYTHON_EXECUTION": "false", "ALLOW_SHELL_EXECUTION": "false" } } } }

工具创建示例

在 Claude Desktop 中,您可以创建一个这样的新工具:

Can you create a tool called "calculate_compound_interest" that computes compound interest given principal, rate, time, and compounding frequency?

Claude 将使用define_function元工具来创建您的新工具,该工具可立即使用。

建筑学

该服务器实现了模型上下文协议(MCP),并提供了一个元工具架构,使得人工智能驱动的功能在安全边界内注册和执行成为可能。

执照

麻省理工学院

-
security - not tested
F
license - not found
-
quality - not tested

使 AI 模型能够通过元功能架构动态创建和执行自己的自定义工具,支持具有沙盒安全性和人工审批流程的 JavaScript、Python 和 Shell 运行时。

  1. Features
    1. Security Considerations
      1. Installation
        1. Usage
          1. Running the server
          2. Configuration
          3. Running with Claude Desktop
        2. Tool Creation Example
          1. Architecture
            1. License
              ID: 2vcw36n0i8