Track MCP LogoTrack MCP
Track MCP LogoTrack MCP

The world's largest repository of Model Context Protocol servers. Discover, explore, and submit MCP tools.

Product

  • Categories
  • Top MCP
  • New & Updated

Company

  • About

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2025 TrackMCP. All rights reserved.

Built with ❤️ by Krishna Goyal

    Ressl Mcp

    Assignment

    0 stars
    Python
    Updated Nov 2, 2025

    Documentation

    ✅ MCP Server – Keyword Search Tool (Case-Insensitive)

    This project is a simple MCP (Model Context Protocol) Server built using FastAPI.

    It includes a tool that allows users to search for a keyword inside a file (case-insensitive).

    ---

    📄 Documentation

    You can view the detailed documentation here:

    **Assignment Documentation**

    ---

    📁 Project Structure

    code
    mcp-server/
    ├── server.py
    ├── tools/
    │   ├── __init__.py
    │   └── search_tool.py
    ├── requirements.txt
    └── README.md

    ---

    ⚙️ 1. Setup Instructions

    ✅ Step 1: Clone or Create Project Folder

    bash
    cd mcp-server

    ✅ Step 2: Create and Activate Virtual Environment (Optional but Recommended)

    bash
    python -m venv venv
    # Activate it:
    # On Windows:
    venv\Scripts\activate
    # On Linux/Mac:
    source venv/bin/activate

    ✅ Step 3: Install Dependencies

    bash
    pip install -r requirements.txt

    ---

    🚀 2. Run the MCP Server

    bash
    uvicorn server:app --reload --port 8000

    If successful, you will see:

    code
    Uvicorn running on http://127.0.0.1:8000

    Visit in browser:

    code
    http://127.0.0.1:8000

    Or API docs (auto-generated):

    code
    http://127.0.0.1:8000/docs

    ---

    🔍 3. Search Keyword in a File (API Usage)

    ✅ Request Format (POST /search)

    json
    {
      "file_path": "path/to/file.txt",
      "keyword": "example"
    }

    ✅ Example using curl:

    bash
    curl -X POST "http://127.0.0.1:8000/search" \
    -H "Content-Type: application/json" \
    -d '{"file_path": "sample.txt", "keyword": "hello"}'

    ✅ Example Response:

    json
    {
      "results": [
        "Line 2: Hello World",
        "Line 5: hElLo again"
      ]
    }

    ---

    🛠 4. Code Summary

    server.py

    Defines API endpoint /search.

    ---

    ✅ 5. Features

    ✔ FastAPI-powered MCP server

    ✔ Case-insensitive keyword search

    ✔ Shows line number + text where keyword exists

    ✔ Error handling for missing files

    ---

    📌 6. Future Improvements (Optional)

    • 🔹 Search across directories
    • 🔹 Regex support
    • 🔹 Return JSON with {line_number, content} format
    • 🔹 File type filtering (.txt, .py, .md, etc.)

    Similar MCP

    Based on tags & features

    • CH

      Chuk Mcp Linkedin

      Python00
    • PU

      Pursuit Mcp

      Python00
    • HE

      Hello Mcp

      Python00
    • GR

      Gradle Mcp

      Python00

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k
    View All MCP Servers

    Similar MCP

    Based on tags & features

    • CH

      Chuk Mcp Linkedin

      Python00
    • PU

      Pursuit Mcp

      Python00
    • HE

      Hello Mcp

      Python00
    • GR

      Gradle Mcp

      Python00

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k