Skip to content

BapiSwarnakar/mcp-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 MCP Server (Spring Boot + React)

An MCP (Model Context Protocol) Server built using Spring Boot and React, developed by STech World. This project enables seamless communication between AI models and client applications, making it easier to build intelligent, scalable systems.


📌 Overview

This repository contains a full-stack implementation of an MCP server designed to integrate with modern AI/LLM providers like OpenRouter or OpenAI.

  • Backend: Spring Boot (Java)
  • Frontend: React.js
  • Purpose: Enable AI-driven communication via MCP protocol

✨ Features

  • 🔹 MCP Server implementation
  • 🔹 RESTful API architecture
  • 🔹 Clean and modular backend (Spring Boot)
  • 🔹 Interactive frontend UI (React)
  • 🔹 LLM integration support (OpenRouter / OpenAI)
  • 🔹 Scalable and production-ready structure
  • 🔹 Easy customization and extension

🛠️ Tech Stack

Layer Technology
Backend Spring Boot (Java)
Frontend React.js
API REST / JSON
AI Support OpenRouter / OpenAI
Build Tools Maven / npm

📂 Project Structure

mcp-server/
│
├── backend/               # Spring Boot application
│   ├── src/
│   ├── pom.xml
│
├── frontend/              # React application
│   ├── src/
│   ├── package.json
│
└── README.md

⚙️ Installation & Setup

🔹 Prerequisites

  • Java 17+
  • Node.js (v16+ recommended)
  • Maven
  • npm or yarn

🔹 Backend Setup (Spring Boot)

cd backend
mvn clean install
mvn spring-boot:run

Backend will start at:

http://localhost:8080

🔹 Frontend Setup (React)

cd frontend
npm install
npm start

Frontend will start at:

http://localhost:3000

🔗 API Integration

The backend exposes REST APIs that can be used to:

  • Communicate with AI models
  • Send and receive MCP requests/responses
  • Manage sessions and data flow

Example:

POST /api/mcp/request

🤖 AI Integration

This project supports integration with:

  • OpenRouter
  • OpenAI APIs
  • Other LLM providers

You can configure API keys in:

application.properties / application.yml

Example:

ai.api.key=YOUR_API_KEY

📸 Screenshots (Optional)

Add UI screenshots here if available


🧪 Testing

Backend:

mvn test

Frontend:

npm test

🚀 Deployment

Backend

  • Deploy using Docker / VPS / Cloud (AWS, Azure, etc.)

Frontend

npm run build

Deploy the build/ folder to any static hosting service.


📌 Use Cases

  • AI Chat Applications
  • Custom AI Agents
  • Automation Systems
  • Business Intelligence Tools

🤝 Contributing

Contributions are welcome!

  1. Fork the repository
  2. Create a new branch
  3. Make your changes
  4. Submit a pull request

📄 License

This project is licensed under the MIT License.


👨‍💻 Author

Developed by STech World


⭐ Support

If you like this project, please give it a ⭐ on GitHub!


About

This project is a full-stack implementation of an MCP (Model Context Protocol) Server developed by STech World, designed to enable seamless interaction between AI models and client applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors