https://github.com/edom18/simple-mcp-sample
MCPの機能実装について、シンプルなサンプルを使って理解を深める。
https://github.com/edom18/simple-mcp-sample
Last synced: 2 months ago
JSON representation
MCPの機能実装について、シンプルなサンプルを使って理解を深める。
- Host: GitHub
- URL: https://github.com/edom18/simple-mcp-sample
- Owner: edom18
- Created: 2025-05-28T12:25:28.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-05-29T03:58:17.000Z (5 months ago)
- Last Synced: 2025-05-29T04:27:08.607Z (5 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-mcp-servers - **simple-mcp-sample** - This repository demonstrates how to set up and implement basic MCP server that integrates with Claude Desktop. `python` `mcp` `server` `pip install git+https://github.com/edom18/simple-mcp-sample` (🤖 AI/ML)
- awesome-mcp-servers - **simple-mcp-sample** - This repository demonstrates how to set up and implement basic MCP server that integrates with Claude Desktop. `python` `mcp` `server` `pip install git+https://github.com/edom18/simple-mcp-sample` (AI/ML)
README
# Simple MCP Feature Sample
This project includes several example implementations of MCP features.
The server script demonstrates how to set up a basic MCP server that integrates with Claude Desktop.
These server scripts also work with the simple MCP clients I developed.
# How to Verify Functionality
There are two shell scripts for launching demos: one for a single client and one for multiple clients.
## Launch the single client demo
Run `single-client-launch-demo.sh`.
```shell
$ ./single-client-launch-demo.sh
```
and then the console shows like below.
```console
Connecting to the MCP server...
Command is python
Connected to the server 'simple_server'!
Waiting for server to initialize...
Server initialized!
Connected to the server with tools: ['reverse-text', 'uppercase']
MCP client started!
Type your queries or 'quit' to exit.
Query:
```
Please type something that you want to ask AI or `quit` to exit.
When you send a request containing `reverse text` or `upper text`, the AI will use the simple MCP server’s text-processing features.
## Launch the multi client demo
Run `multi-client-launch-demo.sh`.
```shell
$ ./multi-client-launch-demo.sh
```
and then the console shows like below.
```console
Connecting to the MCP server...
Command is python
Connected to the server 'simple_server'!
Waiting for server to initialize...
Server initialized!
Connected to the server with tools: ['reverse-text', 'uppercase']
Connecting to the MCP server...
Command is python
Connected to the server 'profile_data_server'!
Waiting for server to initialize...
Server initialized!
Connected to the server with tools: ['profile-data']
MultiMCP client started!
Type your queries or 'quit' to exit.
Query:
```
Please type something that you want to ask AI or `quit` to exit.
If you include `Who am I?` in your query, the AI will use the data MCP server feature to answer your question.
# Installation for Claude Desktop
Add the following settings to your Claude Desktop configuration file:
```json:for simple server
"mcpServers": {
"simple-mcp-sample": {
"command": "python",
"args": [
"/path/to/simple-mcp-sample/server/simple_server.py"
]
}
}
```
```json:for data server
"mcpServers": {
"simple-mcp-sample": {
"command": "python",
"args": [
"/path/to/simple-mcp-sample/server/data_server.py"
]
}
}
```
> [!NOTE]
> If you receive a `command not found` error when launching the server, specify the full path to your Python executable.