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., "@FastMCP Basic Servercalculate the sum of 15 and 27"
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.
MCP Server using FastMCP
A basic Model Context Protocol (MCP) server implementation using FastMCP, designed for integration with Cline.
Overview
This project provides a simple MCP server that demonstrates how to create tools and expose them through the MCP protocol. It's designed to be integrated with Cline for AI-assisted development workflows.
Features
Tool Definitions: Example tools for greeting, calculations, and server information
FastMCP Framework: Built on the FastMCP library for simplified MCP server development
Cline Integration: Ready to integrate with Cline for AI assistant capabilities
Async Support: Full async/await support for non-blocking operations
Project Structure
Installation
Install dependencies:
For development with additional tools:
Available Tools
1. get_greeting
Get a greeting message.
Input:
name(string) - The name to greetOutput: Greeting message
2. calculate_sum
Calculate the sum of two numbers.
Input:
a(float),b(float)Output: Sum result
3. get_server_info
Get information about the MCP server.
Output: Server information dictionary
Running the Server
Or directly:
Integrating with Cline
To integrate this MCP server with Cline:
Ensure the server is installed and can be run
Configure Cline to connect to this MCP server using the appropriate endpoint
The available tools will be accessible within Cline's context
Development
Running Tests
Code Formatting
Linting
MCP Protocol
This server implements the Model Context Protocol, which allows AI assistants and other tools to:
Discover available tools and their parameters
Call tools with structured arguments
Receive structured responses
Adding New Tools
To add a new tool to the server, add a new function decorated with @server.call_tool():
License
MIT
Contributing
Feel free to extend this server with additional tools and capabilities as needed.
#run this command to start the mcp server
#use this cline configuration of MCP server