1. Conduid
  2. Search
  3. Simple Fastmcp Example
MCP server · Search

Simple Fastmcp Example

Simple FastMCP example

Unclaimed last commit a year ago search
34Low

Scored 7 months ago · breakdown

About Simple Fastmcp Example

Simple Fastmcp Example is an MCP server published by rajesh1084 in the Search category: simple FastMCP example.

Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/rajesh1084/simple-fastmcp-example

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Simple Fastmcp Example

Powered by Claude · Grounded in docs

I know everything about Simple Fastmcp Example. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

Simple FastMCP Example

This project demonstrates a simple implementation of a FastMCP server and client. The server provides resources, tools, and prompts, while the client interacts with the server using HTTP and Server-Sent Events (SSE).

Project Structure

  • src/fastmcp_server/remote_server.py: Contains the FastMCP server implementation with resources, tools and prompts.
  • src/client.py: Contains the client implementation to interact with the FastMCP server.

Features

Server Components

  • Resources:

    • mcp://hello: Returns a simple greeting message
    • mcp://greeting/{name}: Returns a personalized greeting with the provided name
  • Tools:

    • echo: Echoes back the input text
    • add: Adds two numbers together
  • Prompts:

    • introduction: Creates an introduction message using the specified name and role

Client Capabilities

  • Connect to the server via SSE
  • List available resources and tools
  • Read content from resources
  • Call tools with parameters
  • Get prompt templates and results

Requirements

  • Python >=3.13
  • Dependencies:
    • mcp
    • fastapi
    • uvicorn
    • pydantic
    • starlette

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd simple-fastmcp-example
    
  2. Install dependencies:

    uv sync
    

Running the Server

To run the FastMCP server:

python src/fastmcp_server/remote_server.py

The server will start and listen on http://localhost:8000 with an SSE endpoint at /sse.

Running the Client

To run the client:

python src/client.py

Example Interaction

When running the client, you should see output similar to:

INFO:mcp-client:Connecting to MCP server at http://localhost:8000/sse
INFO:mcp-client:Connection initialized
INFO:mcp-client:Listing resources...

Available Resources:
- Hello Resource (mcp://hello)
- Personalized Greeting (mcp://greeting/{name})

Hello Resource Content: Hello from MCP Server!
Greeting Resource Content: Welcome to MCP, User!

Available Tools:
- echo: Echoes back the input text.
- add: Adds two numbers together.

Echo Tool Result: Echo: Hello, Server!
Add Tool Result: 8.0

Available Prompts:
- introduction: Creates an introduction message.

Introduction Prompt:
[assistant] You are a helpful assistant.
[user] Please introduce yourself to Developer who is a Software Engineer.

License

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Simple Fastmcp Example

How do I install Simple Fastmcp Example?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Simple Fastmcp Example safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Simple Fastmcp Example still maintained?

The last commit was a year ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.