MCP Server
MCPサーバー
FastAPIで構築されたモジュール式のModel Context Protocol (MCP) サーバーで、LLMインタラクションのためのツールを提供します。
機能
モジュール式アーキテクチャ - 各ツールは容易に保守可能
ファイル操作 - ファイルの読み取り、書き込み、追記、置換、挿入
ウェブ検索 - DDGSを使用したライブウェブ検索
URL取得 - ウェブコンテンツのスクレイピングと要約
コマンド実行 - サンドボックス環境でのシェルコマンド実行
厳格な分離 - 使い捨ての
/tmpを備えたBubblewrapサンドボックス
Related MCP server: mcp-toolkit
ツール
ツール | 説明 |
| 今日の日付と時刻を取得 |
| 2つの数値を加算 |
| ライブウェブで情報を検索 |
| URLをスクレイピングしてコンテンツを抽出 |
| ファイルとディレクトリを一覧表示 |
| 行ベースのウィンドウイングでファイルを読み取り |
| ファイルにテキストを書き込み |
| 既存のファイルにテキストを追記 |
| ファイル内のテキストを検索して置換 |
| マーカー行の後にテキストを挿入 |
| サンドボックス内でシェルコマンドを実行 |
インストール
# Clone the repository
git clone <repository-url>
cd mcp_server
# Install dependencies using uv
uv sync使用方法
# Start the server
python main.pyサーバーは http://0.0.0.0:8000 で起動します。
アーキテクチャ
mcp_server/
├── main.py # FastAPI application entry point
├── tools.json # Tool definitions (JSON schema)
└── tools/ # Tool implementations
├── __init__.py # Exports all handlers
├── add.py # Math operations
├── today.py # Date/time
├── web_search.py # Web search
├── fetch_content.py # URL scraping
├── files.py # All file operations
└── run_command.py # Shell command executionサンドボックス設定
run_command ツールは分離のためにbubblewrapを使用します:
読み取り専用ルートファイルシステム (
--ro-bind / /)使い捨て一時ディレクトリ (
--tmpfs /tmp)書き込み可能なリソースディレクトリ (
--bind resources resources)DNS解決有効 (
/etc制限なし)
免責事項
このプロジェクトは、Alibaba GroupのTongyi Labによる大規模言語モデル Qwen 3.6 の支援を受けて開発されました。コード生成、ドキュメント作成、リファクタリングにおいてAIの支援を受けましたが、すべての技術的決定および最終的な実装は、人間の開発者によってレビューおよび検証されています。
ライセンス
MITライセンス
This server cannot be deployed
Maintenance
Related MCP Connectors
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
MCP server for AI dialogue using various LLM models via AceDataCloud
Related MCP Servers
- AlicenseAqualityFmaintenanceAn MCP server that enables secure terminal command execution, directory navigation, and file system operations through a standardized interface for LLMs.1097MIT
- AlicenseAqualityDmaintenanceA general-purpose MCP server providing web search, persistent memory storage, and secure code execution capabilities. It enables AI agents to search the web, store and retrieve data, and run Python/JavaScript code in sandboxed environments.8MIT
- AlicenseNot gradedqualityDmaintenanceA comprehensive MCP server enabling LLMs to execute commands, manage files, interact with Figma, search the web, generate images, and more, extending their capabilities beyond text generation.Apache 2.0
- AlicenseNot gradedqualityDmaintenanceA secure, production-grade MCP server that provides filesystem operations, AST math evaluation, and system diagnostics for LLM agents.MIT