Skip to main content
Glama

MCP ツールキット

英語 |中国語

概要

MCP Toolkitは、包括的なモデルコンテキストプロトコル(MCP)サーバー実装であり、AIアシスタントがローカルシステム、ファイル、データベース、外部サービスとやり取りするための豊富なツールセットを提供します。セキュリティと制御を維持しながら、AIの機能を現実世界のインタラクションに拡張するように設計されています。

Related MCP server: MCP Python Toolbox

特徴

  • ファイルシステム操作

    • ファイルの読み取りと書き込み

    • ディレクトリの作成と削除

    • 正規表現パターンでファイルを検索する

    • ディレクトリの内容を一覧表示する

    • コード定義の抽出

  • データベース統合

    • MySQLサポート

    • PostgreSQLサポート

    • Redisのサポート

    • トランザクション管理

    • パラメータ化されたクエリ

  • GitHub 統合

    • リポジトリ管理

    • コード検索

    • ファイル操作

    • ツリー構造解析

  • ウェブ機能

    • ウェブページコンテンツの抽出

    • Brave検索の統合

    • HTTPリクエスト処理

    • プロキシサポート

  • システムツール

    • コマンド実行

    • あらゆる検索統合

    • スタックトレース分析

    • ログシステム

インストール

npm install mcp-toolkit

構成

プロジェクトにconfig.jsonファイルを作成します。

{
  "workspace": {
    "rootPath": "/path/to/workspace",
    "allowedPaths": ["/allowed/path1", "/allowed/path2"]
  },
  "network": {
    "proxy": "http://proxy-server:port"  // Optional
  },
  "database": {
    "mysql": {
      "host": "localhost",
      "port": 3306,
      "user": "user",
      "password": "password",
      "database": "dbname"
    }
    // Similar configuration for PostgreSQL and Redis
  }
}

使用法

import { Server } from 'mcp-toolkit';

const server = new Server({
  configPath: './config.json'
});

server.start();

ツールの詳細

ファイル操作ツール

  • read_file : ファイルの内容を読み取ります。テキストファイルとバイナリファイルをサポート

  • write_to_file : ファイルの書き込みまたは作成

  • apply_diff : ファイルに差分変更を適用する

  • insert_content : 指定された位置にコンテンツを挿入する

  • search_and_replace : ファイルの内容を検索して置換する

  • list_files : ディレクトリの内容を一覧表示する

  • search_files : 正規表現を使用してファイルを検索する

  • list_code_definition_names : コード定義を抽出する

データベースツール

  • db_connect : データベース (MySQL/PostgreSQL/Redis) に接続する

  • db_query : データベースクエリを実行する

  • db_begin_transaction : トランザクションを開始する

  • db_commit_transaction : トランザクションをコミットする

  • db_rollback_transaction : トランザクションのロールバック

  • db_close : データベース接続を閉じる

GitHubツール

  • github_ls : リポジトリの内容を一覧表示する

  • github_tree : リポジトリのツリー構造を表示する

  • github_search_repo : リポジトリを検索する

  • github_search_code : コードを検索

  • github_cat : ファイルの内容を表示する

  • github_list_repos : ユーザーのリポジトリを一覧表示する

  • github_create_repo : リポジトリを作成する

  • github_update_repo : リポジトリ設定を更新する

  • github_delete_repo : リポジトリを削除する

ウェブツール

  • read_webpage : ウェブページのコンテンツを抽出する

  • brave_search : Brave検索を使用する

  • http_request : HTTPリクエストを送信する

システムツール

  • execute_command : システムコマンドを実行する

  • everything_search : ローカルファイル検索

  • logger : ログ記録

  • get_stack_trace : スタックトレースの分析

安全

  • 設定可能なワークスペース制限

  • コマンド実行制御

  • データベースアクセス管理

  • 外部サービス向けのトークンベースの認証

貢献

貢献を歓迎します!詳細については貢献ガイドラインをお読みください。

ライセンス

MITライセンス

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    A Model Context Protocol server that enables AI assistants like Claude to perform Python development tasks through file operations, code analysis, project management, and safe code execution.
    9
    MIT
  • F
    license
    Not graded
    quality
    F
    maintenance
    A Model Context Protocol server that extends AI capabilities by providing file system access and management functionalities to Claude or other AI assistants.
    164 npm
    5
    -
  • F
    license
    B
    quality
    D
    maintenance
    A Model Context Protocol server implementation that can be run directly or through Docker, enabling AI assistants to interact with external systems through the MCP standard.
    2
    -