Ressl_MCP
Assignment
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:
๐ Project Structure
mcp-server/
โโโ server.py
โโโ tools/
โ โโโ __init__.py
โ โโโ search_tool.py
โโโ requirements.txt
โโโ README.mdโ๏ธ 1. Setup Instructions
โ Step 1: Clone or Create Project Folder
cd mcp-serverโ Step 2: Create and Activate Virtual Environment (Optional but Recommended)
python -m venv venv
# Activate it:
# On Windows:
venv\Scripts\activate
# On Linux/Mac:
source venv/bin/activateโ Step 3: Install Dependencies
pip install -r requirements.txt๐ 2. Run the MCP Server
uvicorn server:app --reload --port 8000If successful, you will see:
Uvicorn running on http://127.0.0.1:8000Visit in browser:
http://127.0.0.1:8000Or API docs (auto-generated):
http://127.0.0.1:8000/docs๐ 3. Search Keyword in a File (API Usage)
โ Request Format (POST `/search`)
{
"file_path": "path/to/file.txt",
"keyword": "example"
}โ Example using `curl`:
curl -X POST "http://127.0.0.1:8000/search" \
-H "Content-Type: application/json" \
-d '{"file_path": "sample.txt", "keyword": "hello"}'โ Example Response:
{
"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.)
Frequently asked questions
What is Ressl_MCP?
Ressl_MCP is Assignment
How do I install Ressl_MCP?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is Ressl_MCP open source?
Yes โ it is hosted on GitHub at https://github.com/chetaniitbhilai/ressl_mcp.
Related MCP tools
Cognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory across sessions with a self-hosted knowledge graph engine.
Python SQL Parser and Transpiler
MCP server that interacts with Obsidian via the Obsidian rest API community plugin
Open-source meeting transcription API for Google Meet, Microsoft Teams & Zoom. Auto-join bots, real-time WebSocket transcripts, MCP server for AI agents. Self-host or use hosted SaaS.
A super light-weight embedded code search engine CLI (AST based) that just works - improves speed and efficiency for coding agent ๐ Star if you like it!
Official MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP