papserMCP_server
Enables AI assistants to search and retrieve CodeChef VIT university question papers from MongoDB, offering tools for paper search, metadata retrieval, and recent paper feeds.
README
CodeChef VIT Papers MCP Server
A standalone Model Context Protocol (MCP) server that exposes the CodeChef VIT papers portal's data to MCP-compatible AI clients (Claude Desktop, Cursor, VS Code Copilot, etc.). It connects directly to the portal's MongoDB database in read-only mode, allowing AI assistants to query university question papers, retrieve full metadata, and fetch feeds of recently added papers.
[!IMPORTANT] This server operates purely in read-only mode. It does not contain any write or upload capabilities, authentication flows, or external HTTP server interfaces. It communicates strictly via standard input/output (
stdio) transport.
Features
- Tool:
search_papers: Search for university question papers using filters like subject (matches both subject name or course code, e.g., "BCSE202P" or "Data Structures"), year, exam type, branch, and campus. Results are capped at 20 documents, displaying a total count notice if more matches exist. - Tool:
get_paper_metadata: Fetch the complete metadata details for a specific question paper using its database ID. - Resource:
recent-papers: Access a read-only JSON feed of the last 10 papers added to the database.
Input Validation & Rate Limiting
Input Validation (Zod)
All tool inputs are validated strictly using Zod before any database queries are executed:
search_papers:subject: Optional string.year: Optional 4-digit integer between1000and9999(e.g.2023).exam: Optional enum matching known exam types:CAT-1,CAT-2,FAT,Model CAT-1,Model CAT-2,Model FAT.branch: Optional enum matching known branch types:CSE,ECE.campus: Optional enum matching known campuses:Vellore,Chennai,Andhra Pradesh,Bhopal,Bangalore,Mauritius.
get_paper_metadata:paperId: Required 24-character hexadecimal MongoDB ObjectId string.
If validation fails, the server responds with a clear MCP error before calling MongoDB.
Rate Limiting
To prevent abuse, the server implements an in-memory Token Bucket rate limiter scoped per session (the stdio connection process):
- Limit: Max 30 tool calls per minute.
- Behavior: Exceeding the rate limit returns a clean MCP error response (no crash) and logs the event to
console.error.
Setup Instructions
Prerequisites
- Node.js (v18 or higher recommended)
- npm (v9 or higher)
- A read-only MongoDB URI for the portal's database (never use production write credentials)
Installation
-
Clone or navigate to the repository directory:
cd d:/VIT/Club/papserMCP_server -
Install the dependencies:
npm install -
Create your environment configuration file: Copy
.env.exampleto.envand fill in your read-only database URI:cp .env.example .envEdit
.env:MONGODB_URI_READONLY="mongodb+srv://<username>:<password>@cluster.mongodb.net/Papers-staging?retryWrites=true&w=majority"
Build and Run
To compile the TypeScript source into production-ready JavaScript code:
# Build the project
npm run build
# Run the server locally (it will wait for stdio inputs)
npm run start
For development mode (automatically re-compile files as they change):
npm run dev
Wiring into Claude Desktop
To expose this MCP server to Claude Desktop, add the server to your Claude Desktop configuration file.
Configuration Path
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
JSON Configuration Snippet
Add the following snippet under mcpServers. Make sure to replace the env.MONGODB_URI_READONLY with your actual read-only database credentials:
{
"mcpServers": {
"codechefvit-papers-mcp": {
"command": "node",
"args": [
"d:/VIT/Club/papserMCP_server/dist/index.js"
],
"env": {
"MONGODB_URI_READONLY": "mongodb+srv://<readonly-user>:<password>@cluster.mongodb.net/Papers-staging?retryWrites=true&w=majority"
}
}
}
}
[!TIP] On Windows, you can use forward slashes
/in the file path as shown above, or escape backslashes like"D:\\VIT\\Club\\papserMCP_server\\dist\\index.js".
Try Asking Claude
Once successfully connected, you can ask Claude Desktop questions like:
- "Can you check if there are any CAT-1 papers for Data Structures [BCSE202P] from the Vellore campus?"
- "Find me Vellore campus papers from the year 2023."
- "Can you show me the full metadata for the paper with ID 60d5ecb867c2e022f4b2f123?"
- "List the last 10 question papers added to the portal."
License
This repository is maintained privately for the CodeChef VIT chapter.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。