Skip to content

sahilpardasani/MCP-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 

Repository files navigation

MCP-Server

This project sets up a dual-mode Model Context Protocol (MCP) server that supports both:

🧩 Tool-based responses (e.g., current time, jokes) via FastMCP πŸ’¬ Prompt-response LLM completions via FastAPI

πŸ“ Project Structure

File Purpose
server.py Handles LLM loading, generation, config

πŸš€ Features

βš™οΈ Compatible with Claude Desktop, MCP Inspector, LangGraph, etc. πŸ”Œ FastMCP standard for tool registration and stdin communication 🧠 Run local LLM completions from app.py using /generate API 🌐 Optional HTTP server mode for broader integrations πŸ§ͺ MCP tools return structured JSON responses

πŸ›  Installation pip install fastapi uvicorn transformers torch pip install requests pip install bitsandbytes accelerate # Only needed if using quantized models

πŸ›  Registered MCP Tools Tool Name What It Does time_now Returns current UTC timestamp dad_joke Returns a random dad joke from API

πŸ’‘ What is MCP? Model Context Protocol (MCP) allows custom tools and local models to be integrated into AI assistants like Claude Desktop or LangGraph. You can register Python functions as tools, and they become callable by the assistant when relevant.

Screenshot 2025-05-27 at 1 21 35β€―PM Screenshot 2025-06-06 at 12 36 34β€―PM

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages