Skip to main content
Glama
NavanethaKrishnan-14

MCP Server

README.md
# MCP Server šŸš€

A lightweight and extensible **Model Context Protocol (MCP) Server** built with **Node.js** and the official MCP SDK. This project exposes custom tools and resources that can be used by MCP-compatible AI clients, enabling seamless integration with external services and AI models.

## ✨ Features

* šŸ”§ Custom MCP tools
* šŸ¤– AI model integration
* šŸ“¦ Modular project structure
* ⚔ Fast and lightweight
* šŸ” Environment variable support
* 🌐 JSON-RPC communication
* šŸ“š Easy to extend with new tools
* šŸ“ Resource support
* šŸ› ļø Developer-friendly architecture

---

## šŸ› ļø Tech Stack

* Node.js
* TypeScript
* Model Context Protocol (MCP) SDK
* Google Gemini API (Optional)
* dotenv

---

## šŸ“‚ Project Structure

```text
mcp-server/
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ index.ts
│   ā”œā”€ā”€ tools/
│   ā”œā”€ā”€ resources/
│   ā”œā”€ā”€ handlers/
│   └── utils/
ā”œā”€ā”€ package.json
ā”œā”€ā”€ tsconfig.json
ā”œā”€ā”€ .env.example
ā”œā”€ā”€ .gitignore
└── README.md
```

---

## šŸš€ Installation

Clone the repository:

```bash
git clone https://github.com/NavanethaKrishnan-14/<repository-name>.git
```

Navigate to the project:

```bash
cd <repository-name>
```

Install dependencies:

```bash
npm install
```

---

## āš™ļø Environment Variables

Create a `.env` file in the project root.

Example:

```env
GEMINI_API_KEY=your_api_key
```

> **Never commit your actual `.env` file to GitHub.**

---

## ā–¶ļø Running the Server

Development mode:

```bash
npm run dev
```

Production:

```bash
npm run build
npm start
```

---

## šŸ”§ Example MCP Tools

* Greeting Tool
* Calculator Tool
* AI Chat Tool (Gemini)
* Custom Resource Provider

These tools can be extended by adding new handlers in the `tools` directory.

---

## šŸ“” Compatible MCP Clients

This server can be integrated with MCP-compatible clients such as:

* Cursor
* Claude Desktop
* VS Code MCP extensions
* Custom MCP clients

---

## šŸ“ˆ Future Enhancements

* Authentication support
* Streaming responses
* Database integration
* Logging and monitoring
* Additional AI providers
* File system tools
* Web search tools

---

## šŸ¤ Contributing

Contributions are welcome. Feel free to fork the repository, create a feature branch, and submit a pull request.

---

## šŸ“„ License

This project is licensed under the MIT License.

---

## šŸ‘Øā€šŸ’» Author

**Navanetha Krishnan**

GitHub: https://github.com/NavanethaKrishnan-14

Maintenance

ActivitySlowing
ResponsivenessNo issues