Skip to main content
Glama
README.md
# MCP-Server

A Python **Model Context Protocol (MCP)** server built with [FastMCP](https://github.com/jlowin/fastmcp) that provides task management tools (`create_task`, `update_task`, and `get_list_of_tasks`) with local storage and LangChain/Groq agent integration.

## Overview

`mcp-server` exposes structured task management operations over the Model Context Protocol, allowing AI agents and MCP-compatible clients to create, update, and query tasks backed by local persistence in the `data/` directory.

## Features

- **FastMCP Server:** Lightweight MCP server implementation using `fastmcp`.
- **Task Management Tools:** Create, update, and retrieve tasks with unique UUID identifiers.
- **Local Data Persistence:** Stores task state locally in the `data/` directory.
- **LangChain & Groq Ready:** Configured with `langchain[mcp]` and `langchain-groq` for building and testing MCP-enabled LLM agents.
- **Modern Python Packaging:** Managed and built with `uv` (`uv_build`) targeting Python 3.12+.

## Project Structure

```text
MCP-Server/
├── data/             # Local storage for persisted tasks
├── src/              # Source code (mcp_server package, tools, and entrypoint)
├── LICENSE           # Project license
├── pyproject.toml    # Project metadata, dependencies, and script entrypoints
└── README.md         # Project documentation
```

## Available MCP Tools

| Tool | Description |
| :--- | :--- |
| **Create Task** | Creates a new task entry with a generated UUID and stores it in `data/`. |
| **Update Task** | Updates the status or details of an existing task by its identifier. |
| **Get List of Tasks** | Retrieves the current list of stored tasks. |

## Prerequisites

- **Python** `>= 3.12`
- **[uv](https://docs.astral.sh/uv/)** (recommended for dependency management and running scripts)
- **Groq API Key** (if running LangChain + Groq client workflows)

## Installation

1. Clone the repository:

```bash
git clone https://github.com/Ryomen-25/MCP-Server.git
cd MCP-Server
```

2. Sync dependencies using `uv`:

```bash
uv sync
```

## Configuration

Create a `.env` file in the project root to store your environment variables:

```env
GROQ_API_KEY=your_groq_api_key_here
```

## Usage

### Running the Server

You can run the registered `mcp-server` script entrypoint via `uv`:

```bash
uv run mcp-server
```

### Connecting to an MCP Client

Add the server to your MCP client configuration (e.g., `mcp.json` or Claude Desktop / Cursor MCP settings):

```json
{
  "mcpServers": {
    "task-mcp-server": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/MCP-Server",
        "mcp-server"
      ]
    }
  }
}
```

## Author

- **Ryomen-25** — [m.m.reda.2200@gmail.com](mailto:m.m.reda.2200@gmail.com)

## License

This project is licensed under the terms of the [LICENSE](LICENSE) file included in this repository.