Skip to main content
Glama
MCP Server

MCP Server

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


Related MCP server: Example MCP Server

πŸ› οΈ Tech Stack

  • Node.js

  • TypeScript

  • Model Context Protocol (MCP) SDK

  • Google Gemini API (Optional)

  • dotenv


πŸ“‚ Project Structure

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

πŸš€ Installation

Clone the repository:

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

Navigate to the project:

cd <repository-name>

Install dependencies:

npm install

βš™οΈ Environment Variables

Create a .env file in the project root.

Example:

GEMINI_API_KEY=your_api_key

Never commit your actual .env file to GitHub.


▢️ Running the Server

Development mode:

npm run dev

Production:

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      Not graded
      maintenance
      A minimal Node.js Model Context Protocol server that exposes two simple tools ('add' and 'getTime') that can be called from AI assistants like Claude Desktop or Cursor.
      2
      118 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A minimal, general-purpose implementation of the Model Context Protocol (MCP) for Node.js and Bare runtime, enabling creation of AI-interactive servers with tools, resources, and multiple transport options.
      11 npm
      2
      MIT