Raj Assistant MCP

Raj Assistant MCP

A modular AI Assistant built using the Model Context Protocol that provides tools for calculator, weather, news, AI chat, currency conversion, document processing, and future RAG capabilities.

Category
Visit Server

README

šŸ¤– Raj Assistant MCP

A modular Model Context Protocol (MCP) server built with Python. This project is designed to work with MCP Inspector and other MCP-compatible clients.

What is implemented

  • Calculator: add, subtract, multiply, divide, percentage
  • Date/time with IANA timezones
  • Current weather using Open-Meteo
  • News using NewsData.io
  • Currency conversion using Frankfurter
  • Gemini AI chat
  • PDF, DOCX, TXT, MD, CSV, XLSX and basic image file reading
  • Local RAG document indexing and semantic search with ChromaDB
  • Clean service/tool separation
  • Environment-based configuration
  • Basic tests

Architecture

MCP Client / Inspector
        |
        v
   server.py
        |
        +-------------------+
        |                   |
     MCP Tools          Services
        |                   |
        +---------+---------+
                  |
       External APIs / Chroma
                  |
              Local files

1. Setup on Windows

python -m venv .venv
.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
pip install -r requirements.txt
copy .env.example .env

Edit .env and add your own NEWS_API_KEY and GEMINI_API_KEY.

Security: The old uploaded project contained API keys in .env. Rotate/revoke those keys and never commit .env to Git.

2. Run normally

python server.py

The MCP server uses stdio, so it may appear to wait without printing a normal web page.

3. Run MCP Inspector

mcp dev server.py

Then open the Inspector URL printed in the terminal.

If you get ModuleNotFoundError, activate the virtual environment in the same PowerShell window before running the command.

4. Tools

Calculator

  • add
  • subtract
  • multiply
  • divide
  • percentage

Date/time

  • current_date
  • current_time
  • current_datetime

Default timezone is Asia/Kolkata. You can pass another IANA timezone such as UTC or America/New_York.

Weather

get_current_weather(latitude=21.1702, longitude=72.8311)

Open-Meteo does not require an API key.

News

Requires NEWS_API_KEY.

top_news(topic="technology", country="in", limit=5)

Currency

convert_currency(amount=100, from_currency="USD", to_currency="INR")

Uses Frankfurter's public exchange-rate API.

AI chat

Requires GEMINI_API_KEY.

chat(message="Explain MCP in simple words")

Documents

read_document(path="C:\\path\\to\\file.pdf")
index_document(path="C:\\path\\to\\file.pdf")
search_knowledge(query="What is this document about?", top_k=5)

Supported: PDF, DOCX, TXT, MD, CSV, XLSX, JSON and basic image metadata.

5. Project structure

project_mcp/
ā”œā”€ā”€ .env.example
ā”œā”€ā”€ config.py
ā”œā”€ā”€ server.py
ā”œā”€ā”€ requirements.txt
ā”œā”€ā”€ README.md
ā”œā”€ā”€ tools/
│   ā”œā”€ā”€ calculator.py
│   ā”œā”€ā”€ chat.py
│   ā”œā”€ā”€ currency.py
│   ā”œā”€ā”€ datetime.py
│   ā”œā”€ā”€ documents.py
│   ā”œā”€ā”€ news.py
│   ā”œā”€ā”€ rag.py
│   └── weather.py
ā”œā”€ā”€ services/
│   ā”œā”€ā”€ ai_service.py
│   ā”œā”€ā”€ currency_service.py
│   ā”œā”€ā”€ document_service.py
│   ā”œā”€ā”€ rag_service.py
│   ā”œā”€ā”€ news_service.py
│   └── weather_service.py
└── tests/

Next stage: AI Agent

The MCP server is now a strong tool layer. An AI Agent should normally live in an MCP client/agent application that:

  1. discovers tools with tools/list
  2. sends the available tools to the model
  3. lets the model choose a tool
  4. calls the selected MCP tool with tools/call
  5. feeds the result back to the model
  6. repeats until the final answer is ready

This keeps the MCP server focused on reliable capabilities instead of mixing agent orchestration into every tool.

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured