MCPFastDemo

MCPFastDemo

3.4

This is a simple MCP (Model Context Protocol) server example, suitable for beginners to understand and learn the basic concepts and usage of MCP.

MCP (Model Context Protocol) is a protocol that allows AI models, such as Claude, to interact with external tools and resources. Through MCP, AI can access real-time data, perform computations, or communicate with other systems, thereby extending its capabilities. This repository contains a simple MCP server example that provides basic functionalities to help users get started with MCP. It includes tools for performing basic arithmetic operations, generating personalized greetings, and analyzing code snippets.

Features

  • Addition Tool: A simple tool that can add two numbers.
  • Greeting Resource: A dynamic resource that returns personalized greetings based on the provided name.
  • Code Analysis Prompt: A template for in-depth code analysis.

MCP Tools

  • Addition Tool: A tool to add two numbers.

MCP Resources

  • {'name': 'Greeting Resource', 'description': 'Returns personalized greetings based on the provided name.'}

Usage with Different Platforms

mcp

sh
sh start.sh