simple-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@simple-mcpecho hello world"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
simple-mcp
MCP(Model Context Protocol)に準拠したシンプルな HTTP ベースの MCP Server です。 Python 標準ライブラリのみで動作し、ツール・プロンプト・リソースを提供します。
提供する機能
Tools
ツール名 | 説明 |
| テスト用文字列を返します( |
| 入力メッセージをそのまま返します |
|
|
Prompts
プロンプト名 | 説明 |
| 挨拶プロンプト( |
Resources
URI | 説明 |
| デモ用テストデータ |
その他の機能
OAuth 2.1 Bearer トークン検証(JWKS / RS256)※オプション・デフォルト無効
CORS 対応
RFC 9728 Protected Resource Metadata エンドポイント(
/.well-known/oauth-protected-resource)MCP プロトコルバージョン
2024-11-05
Related MCP server: mcp-hello-world
必要環境
Python 3.8 以上
OAuth 認証を使う場合のみ追加パッケージが必要(
requirements.txt参照)
セットアップ
# 仮想環境の作成
python3 -m venv venv
source venv/bin/activate
# 依存パッケージのインストール(OAuth を使わない場合は省略可)
pip install -r requirements.txt
# 設定ファイルの準備
cp mcp_server_config.json.example mcp_server_config.json
# メンテナンス情報ファイルの準備(自動生成されますが、手動で用意も可能)
mkdir -p mcp-server-data
cp mcp-server-data/secret_notes.txt.example mcp-server-data/secret_notes.txt起動
フォアグラウンド実行(手元での検証用)
# 設定ファイルのポートで起動(デフォルト: 9000)
python3 mcpServer.py
# ポートを指定して起動
python3 mcpServer.py 9001起動後、http://localhost:9000/ でリクエストを待ち受けます。
バックグラウンド実行(本番運用 / Ubuntu 推奨)
scripts/ 以下のスクリプトを使うと、ターミナルを切断しても継続動作するバックグラウンド起動ができます。
ログは logs/server.log に出力され、tail -f でリアルタイムに確認できます。
# 初回のみ:スクリプトに実行権限を付与
chmod +x scripts/*.sh
# 起動(設定ファイルのポート / デフォルト 9000)
./scripts/start.sh
# ポートを指定して起動
./scripts/start.sh 9001
# ログをリアルタイム確認(別ターミナルで実行)
tail -f logs/server.log
# 状態確認
./scripts/status.sh
# 停止
./scripts/stop.sh補足: バックグラウンド起動時は
python3 -u(出力バッファリング無効化)で動かすため、tail -fで遅延なくログが表示されます。プロセスは PID ファイル(mcp-server.pid)で管理され、 二重起動は防止されます。
動作確認
# ヘルスチェック(GET)
curl http://localhost:9000/
# initialize リクエスト(POST)
curl -X POST http://localhost:9000/ \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}'
# ツール一覧の取得
curl -X POST http://localhost:9000/ \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'
# ツールの実行(echo)
curl -X POST http://localhost:9000/ \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"echo","arguments":{"message":"hello"}}}'設定(mcp_server_config.json)
項目 | 説明 | デフォルト |
| 待ち受けホスト |
|
| 待ち受けポート |
|
| サーバー名・バージョン |
|
| メンテナンス情報ファイルのパス |
|
|
| (例を参照) |
| 返却時のプレフィックス文字列 |
|
| OAuth 認証設定( |
|
ディレクトリ構成
simple-mcp/
├── mcpServer.py # MCP Server 本体
├── mcp_server_config.json.example # 設定ファイル例
├── scripts/
│ ├── start.sh # バックグラウンド起動(nohup + PID管理)
│ ├── stop.sh # 停止
│ └── status.sh # 状態確認
├── mcp-server-data/
│ └── secret_notes.txt.example # メンテナンス情報ファイル例
├── logs/ # ログ出力先(.gitignore 対象・実行時に生成)
├── requirements.txt # OAuth 利用時の依存パッケージ
└── README.mdThis 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.
Latest Blog Posts
- 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/pcparts001/simple-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server