Skip to main content
Glama
AI Meta MCP Server

AI Meta MCP Server

AIメタMCPサーバー

AIモデルがメタ関数アーキテクチャを通じて独自のカスタムツールを作成・実行できるようにする動的MCPサーバー。このサーバーは、実行時にカスタム関数を定義することでAIが独自の機能を拡張できるメカニズムを提供します。

特徴

  • 動的ツール作成: AIはカスタム実装で新しいツールを定義できます

  • 複数のランタイム環境: JavaScript、Python、シェル実行のサポート

  • サンドボックスセキュリティ: 安全のため、ツールは隔離されたサンドボックス内で実行されます

  • 永続性: セッション間でカスタムツール定義を保存および読み込みます

  • 柔軟なツールレジストリ: カスタムツールの管理、一覧表示、更新、削除

  • 人間の承認フロー: ツールの作成と実行には明示的な人間の承認が必要

Related MCP server: Code Executor MCP Server

セキュリティに関する考慮事項

⚠️警告:このサーバーは動的なコード実行を許可しています。注意して使用し、信頼できる環境でのみ使用してください。

  • すべてのコードはサンドボックス環境で実行される

  • ツールの作成と実行には人間による承認が必要

  • ツール実行権限は環境変数で設定可能

  • すべての操作の監査ログ

インストール

npm install ai-meta-mcp-server

使用法

サーバーの実行

npx ai-meta-mcp-server

構成

環境変数:

  • ALLOW_JS_EXECUTION : JavaScript の実行を有効にする (デフォルト: true)

  • ALLOW_PYTHON_EXECUTION : Python の実行を有効にする (デフォルト: false)

  • ALLOW_SHELL_EXECUTION : シェルの実行を有効にする (デフォルト: 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) を実装し、安全な境界内で AI 駆動型関数の登録と実行を可能にするメタツール アーキテクチャを提供します。

ライセンス

マサチューセッツ工科大学

Available Tools

5 tools
define_functionC

Create a new custom MCP function that the AI can use

Inputs: name (required), description (required), parameters_schema (required), implementation_code (required), +1 more.

delete_functionB

Delete a custom MCP function

Inputs: name (required).

get_function_detailsB

Get details of a custom MCP function

Inputs: name (required).

list_functionsB

List all custom MCP functions

Inputs: no named parameters.

update_functionC

Update an existing custom MCP function

Inputs: name (required), description, parameters_schema, implementation_code, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose targeting different operations on custom MCP functions: define (create), delete, get details, list all, and update. There is no overlap or ambiguity between these CRUD operations.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern (e.g., define_function, delete_function, get_function_details, list_functions, update_function). The naming is uniform and predictable throughout the set.

    Tool Count5/5

    With 5 tools, this server is well-scoped for managing custom MCP functions. Each tool serves a clear and necessary purpose, covering the essential operations without being excessive or insufficient.

    Completeness5/5

    The tool set provides complete CRUD coverage for the domain of custom MCP functions: define (create), list, get details, update, and delete. There are no obvious gaps, and agents can handle the full lifecycle of functions.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides sandboxed code execution for AI agents with support for Python, JavaScript, and shell commands. Includes comprehensive safety features like destructive pattern blocking, timeout protection, and restricted file access for secure production use.
      35 PyPI
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables dynamic creation and execution of custom tools/functions in multiple programming languages at runtime, exposing them to MCP clients like Claude.
      4
      10 npm
      45
      MIT