mcp-toolkit-server
🔧 MCP ツールキットサーバー
Model Context Protocol (MCP) に基づく多機能ツールサーバーで、ファイル操作、データベースクエリ、Web検索、計算などのツールを提供し、Claude Desktop、Cursor、Cline などの MCP クライアントから接続できます。
✨ 機能特徴
📁 ファイル操作ツール
list_directory- ディレクトリの内容を一覧表示read_file- テキストファイルを読み取りwrite_file- ファイルへの書き込み/追記file_info- ファイルのメタ情報を取得search_files- ワイルドカードでファイルを検索
🗄️ データベースツール
query_database- SQL SELECT クエリを実行(読み取り専用で安全)list_tables- すべてのテーブルを一覧表示describe_table- テーブル構造を表示init_sample_database- サンプルデータベースを初期化
🌐 Web ツール
web_search- DuckDuckGo ウェブ検索(API キー不要)fetch_webpage- ウェブページの本文コンテンツを取得webpage_info- ウェブページのメタ情報を取得
🧮 計算ツール
calculate- 安全な数式計算convert_unit- 単位変換(長さ/重さ/温度/面積/体積)date_calculation- 日付計算(差分/加減算)percentage_calculation- パーセンテージ計算
Related MCP server: Claude Code Control MCP
🏗️ アーキテクチャ設計
┌─────────────────────────────────────────────────────┐
│ MCP 客户端 (Claude/Cursor) │
└──────────────────────┬──────────────────────────────┘
│ MCP Protocol (stdio / HTTP)
┌──────────────────────▼──────────────────────────────┐
│ FastMCP Server 核心 │
│ ┌──────────┐ ┌──────────┐ ┌────────┐ ┌──────────┐ │
│ │ 文件工具 │ │ 数据库工具│ │Web工具 │ │ 计算工具 │ │
│ └──────────┘ └──────────┘ └────────┘ └──────────┘ │
└─────────────────────────────────────────────────────┘📦 インストール
# 克隆仓库
git clone <repo-url>
cd mcp-toolkit-server
# 创建虚拟环境
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# 安装依赖
pip install -r requirements.txt
# 配置环境变量
cp .env.example .env🚀 使用方法
1. 直接実行(stdio モード)
python server.py2. HTTP モード
python server.py --transport http --host 127.0.0.1 --port 80003. Claude Desktop への接続
Claude Desktop の設定ファイル(claude_desktop_config.json)を編集:
{
"mcpServers": {
"toolkit": {
"command": "python",
"args": ["path/to/mcp-toolkit-server/server.py"],
"env": {
"ALLOWED_DIRS": "/path/to/your/workspace"
}
}
}
}4. Cursor への接続
Cursor の設定 → MCP で追加:
{
"mcpServers": {
"toolkit": {
"command": "python",
"args": ["path/to/mcp-toolkit-server/server.py"]
}
}
}📁 プロジェクト構造
mcp-toolkit-server/
├── server.py # MCP 服务器主入口
├── config.py # 配置管理
├── requirements.txt # 依赖
├── .env.example # 环境变量模板
├── .gitignore
├── README.md
└── src/
├── __init__.py
└── tools/
├── __init__.py
├── file_tools.py # 文件操作工具
├── db_tools.py # 数据库查询工具
├── web_tools.py # Web 搜索/抓取工具
└── calc_tools.py # 计算/转换工具🔒 セキュリティメカニズム
パス分離: ファイル操作は
ALLOWED_DIRS設定のディレクトリ内に制限され、パストラバーサルを防止SQL 読み取り専用: データベースツールは SELECT クエリのみ許可し、書き込み操作を禁止
識別子検証: テーブル名などの識別子は正規表現で検証し、SQL インジェクションを防止
式サンドボックス: 数学計算は制限された eval 環境を使用し、組み込み関数へのアクセスを禁止
🎯 コアハイライト
MCP 仕様準拠: 公式 FastMCP フレームワークに基づき、すべての MCP クライアントと互換性あり
豊富なツール: 4 カテゴリ 17 ツールで、一般的な開発シナリオをカバー
セキュリティ優先: 多層セキュリティメカニズムで悪用を防止
拡張が容易: モジュール設計で、新しいツールは関数を書いて登録するだけ
デュアルトランスポートモード: stdio(ローカル)と HTTP(リモート)の両方のトランスポート方式をサポート
🤝 拡張方向
Git 操作ツールを追加
コード実行ツールを追加(サンドボックス化)
メール送信ツールを追加
カレンダー管理ツールを追加
ツール権限の細粒度制御をサポート
ツール呼び出し監査ログを追加
📄 License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol implementation with a modular architecture that exposes capabilities through specialized agents, enabling seamless integration with Claude Desktop and web applications.2
- FlicenseNot gradedqualityDmaintenanceEnables programmatic execution of coding tasks and autonomous file operations using Claude AI. It allows agents to search codebases, run shell commands, and track file changes through the Model Context Protocol.
- AlicenseNot gradedqualityFmaintenanceEnables Claude AI to run terminal commands, perform file operations, and manage git in a project directory via the Model Context Protocol.38MIT
- FlicenseAqualityDmaintenanceEnables LLMs to interact with Python environments, execute code, manage files, and handle packages through the Model Context Protocol.9
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Your portable context layer — load it into any AI.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/EadnyAIx/mcp-toolkit-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server