mcp_gitbook
0
This project is an MCP server built using the Python MCP SDK and FastMCP. It includes a sample tool that echoes messages back to the user, demonstrating basic server functionality.
NOT COMPLETE
MCP Server Example
A simple MCP (Model Context Protocol) server implementation using the Python MCP SDK with FastMCP.
Setup
- Install dependencies using uv:
uv add "mcp[cli]" requests python-dotenv
Running the Server
Run the server:
python src/mcp_gitbook/main.py
Available Tools
example_tool
An example tool that echoes a message back.
Input schema:
{
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Message to echo"
}
},
"required": ["message"]
}
Example usage:
{
"method": "call_tool",
"params": {
"name": "example_tool",
"arguments": {
"message": "Hello, MCP!"
}
}
}