MCP Server
A TypeScript MCP server that evaluates MCP capabilities over RAG approaches, integrating with Google Calendar to enable querying meetings and events via chat.
README
MCP Server
A TypeScript implementation of a Model Context Protocol (MCP) server, designed to evaluate MCP capabilities over/with RAG (Retrieval-Augmented Generation) approaches for Nutrimate and other AI applications.
Overview
This project explores the Model Context Protocol as an alternative to RAG systems, providing a standardized way for AI applications to access external data sources and tools. The server is built with TypeScript, Node.js and the MCP TypeScript SDK.
Features
- TypeScript-first: Built with full TypeScript support for better developer experience
- MCP Protocol: Implements the Model Context Protocol via Anthropic's TypeScript SDK
Prerequisites
- Node.js (v18 or higher)
- npm or yarn
- TypeScript knowledge (recommended)
Getting Started
-
Clone the repository:
git clone https://github.com/samrasugu/mcp-server.git cd mcp-server -
Install dependencies:
npm install -
Development mode:
npm run dev -
Build the project:
npm run build -
Start the production server:
npm run start
Environment Variables
Set the following environment variables (or configure them in your MCP file):
GOOGLE_PUBLIC_API_KEY: Your Google API keyGOOGLE_CALENDAR_ID: Your Google Calendar ID (e.g., your Gmail address)
You can set these in a .env file:
GOOGLE_PUBLIC_API_KEY=your-google-api-key
GOOGLE_CALENDAR_ID=your-calendar-id
Usage
Get Today's Meetings
To print today's meetings directly in your terminal:
node src/index.js today
Integrating with Cursor MCP & Chat Interaction
This project supports integration with Cursor MCP, enabling you to interact with your server via chat and automate workflows.
1. Configure MCP Server in Cursor
- Open Cursor and go to the MCP panel.
- Add a new MCP server with the following settings (example):
- Name: [your name]'s Calendar
- Command:
node - Args:
src/index.ts - Host:
localhost - Port:
3000 - Environment Variables: Set
GOOGLE_PUBLIC_API_KEYandGOOGLE_CALENDAR_IDas needed.
You can also create a .cursor/mcp.json file for quick setup.
The content of the .cursor/mcp.json file should be like this:
{
"servers": [
{
"name": "[your name]'s Calendar",
"command": "node",
"args": ["src/index.ts"],
"host": "localhost",
"port": 3000,
"env": {
"GOOGLE_PUBLIC_API_KEY": "your-google-api-key",
"GOOGLE_CALENDAR_ID": "your-calendar-id"
}
}
]
}
2. Start the MCP Server
Run the server locally:
node src/index.ts
Or use the MCP panel's built-in controls to start/stop the server.
3. Interact via Chat
- Open the chat panel in Cursor.
- Select your MCP server (e.g., "Sam's Calendar") from the chat source dropdown.
- Ask questions like:
Do I have any meetings today?What is my next event?List all meetings for this week.
- The server will respond with information from your Google Calendar.
4. Customization
You can extend the server to support more commands or integrate with other tools. Update src/index.ts and restart the server to apply changes.
Project Structure
mcp-server/
├── src/
│ └── index.ts # Main server implementation
├── package.json # Dependencies and scripts
├── tsconfig.json # TypeScript configuration
└── README.md # This file
Development
This project is actively being developed as part of an evaluation comparing MCP to RAG systems. The implementation may evolve as the evaluation progresses.
Available Scripts
npm run dev- Start development server with hot reloadnpm run build- Build the TypeScript projectnpm run start- Start the production servernpm test- Run tests (to be implemented)
MCP vs RAG Evaluation
This server is being developed to evaluate the effectiveness of the Model Context Protocol compared to traditional RAG approaches for AI applications, particularly focusing on:
- Performance: Response times and resource usage
- Flexibility: Ease of adding new data sources and tools
- Maintainability: Code organization and extensibility
- Integration: How well it works with existing AI workflows
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。