1. Conduid
  2. Commerce
  3. Simple MCP
MCP server · Commerce

Simple MCP

Practice building MCP servers

Unclaimed commerce
34Low

Scored 8 days ago · breakdown

About Simple MCP

Simple MCP is an MCP server in the Commerce category: practice building MCP servers.

The repository has 5 stars and 0 forks.

Install

From source
git clone https://github.com/acexsre/simple-mcp

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 MCP

Powered by Claude · Grounded in docs

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

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

FastAPI MCP Project

This project contains two main components:

  1. crud-api: A FastAPI-based RESTful API for basic Create, Read, Update, and Delete (CRUD) operations.
  2. mcp-server: A server that exposes the crud-api endpoints as "tools" using the FastMCP library, allowing other services to interact with the API in a standardized way.

Project Structure

FASTAPI-MCP/
├── crud-api/         # The FastAPI CRUD application
│   ├── main.py       # Main application logic
│   ├── test_main.py  # Tests for the API
│   └── ...
└── mcp-server/       # The MCP server
    ├── mcp-server.py # Exposes the API as tools
    └── ...

Visualization

The following diagram illustrates the workflow of the project:

graph TD
    subgraph "User/Client"
        A[User/Client]
    end

    subgraph "MCP Server"
        B[mcp-server.py]
    end

    subgraph "CRUD API"
        C[crud-api/main.py]
    end

    subgraph "Database"
        D[(crud-api.db)]
    end

    A -- "Interacts with MCP tools" --> B
    B -- "Makes HTTP requests to" --> C
    C -- "Performs CRUD operations on" --> D

Getting Started

Prerequisites

  • Python 3.12+
  • uv (or pip) for installing dependencies.

Running the Applications

You will need two separate terminals to run both the crud-api and the mcp-server.

Terminal 1: Run the crud-api

  1. Navigate to the crud-api directory:

    cd crud-api
    
  2. Build the Docker Image:

    docker build -t fastapi-app .
    
  3. Run the FastAPI server:

    # Creating a docker network so that DNS can be resolved
    docker network create mcp-network 
    
    # Run the FastAPI server
    docker run -d --name crudapi --network mcp-network -p 8000:8000 fastapi-app 
    

    The API will be available at http://localhost:8000.

Terminal 2: Run the mcp-server

  1. Navigate to the mcp-server directory:

    cd mcp-server
    
  2. Build the Docker Image:

    docker build -t mcp-server .
    
  3. Run the MCP server:

    # Ensure docker-network is in place and crudapi container is running.
    docker run -d --name mcp --network mcp-network -p 9000:9000 mcp-server
    

    The MCP server will be running on http://localhost:9000/sse.

How It Works

crud-api

  • Uses FastAPI to create a simple REST API.
  • Defines an Item model with id, name, and description.
  • Uses SQLAlchemy to interact with a SQLite database (crud-api.db).
  • Provides the following endpoints:
    • POST /items/: Create a new item.
    • GET /items/: Get a list of all items.
    • GET /items/{item_id}: Get a specific item by its ID.
    • PUT /items/{item_id}: Update an item.
    • DELETE /items/{item_id}: Delete an item.

mcp-server

  • Uses the FastMCP library to create a server that exposes "tools".
  • Each tool corresponds to an endpoint in the crud-api.
  • When a tool is called on the mcp-server, it makes an HTTP request to the corresponding endpoint on the crud-api.
  • This acts as a bridge, allowing services that can communicate with an MCP server to indirectly interact with the REST API.

Connecting with Gemini CLI

You can connect to the mcp-server using the Gemini CLI.

  1. Open the Gemini CLI settings. /home/itsayushs/.gemini/settings.json

  2. Append the new MCP server configuration.

  3. Example settings.json:

    {
      "theme": "...",
      "selectedAuthType": "...",
      ...
      "mcpServers": {
        "crudmcp": {
          "url": "http://0.0.0.0:9000/sse"
        }
      }
    }
    
  4. Save the settings.

  5. Now you can use the crudmcp mcp tools in the Gemini CLI. (Reload Required)

  6. Use /mcp to list the Configured MCP servers. crudmcp should be visible.

Connecting with Copilot Chat in VSCode

  1. Open VSCode -> Copilot Chat -> Configure Tool.. (Next to Voice Chat Button) -> Add More Tools
  2. Add MCP Server -> Select HTTP/SSE
  3. Provide http://127.0.0.1:9000/sse as the URL
  4. Ref mcp.json:
{
	"servers": {
		"crudmcp-itsayushs": {
			"url": "http://127.0.0.1:9000/sse",
			"type": "sse"
		}
	},
	"inputs": []
}

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

Questions

About Simple MCP

How do I install Simple MCP?

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

Is Simple MCP 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 MCP still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.