Demo MCP Server
演示 MCP 服务器(无头)
仅 MCP 项目 — 无 React UI。通过 HTTP 连接任何 React(或其他)应用。
代理
文件夹 | ID | 角色 |
|
| MongoDB Atlas CRUD |
|
| 本地 Excel |
Any React app
│ POST /api/login { apiKey }
│ Authorization: Bearer <token>
├─► POST /api/agent (plain English)
├─► /api/* (REST Mongo helpers)
└─► /mcp (MCP Streamable HTTP for agent hosts)
│
▼
demo-mcp-server
├── agents/mongo
└── agents/excelRelated MCP server: MongoDB MCP Server
运行
npm install
npm run api # http://127.0.0.1:3000
npm run mcp # stdio for Cursor登录(从任何 React 应用)
在 .env 中设置 CLIENT_API_KEY。然后:
const login = await fetch('http://127.0.0.1:3000/api/login', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ apiKey: import.meta.env.VITE_MCP_API_KEY }),
}).then((r) => r.json());
const token = login.token;
const result = await fetch('http://127.0.0.1:3000/api/agent', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${token}`,
},
body: JSON.stringify({ prompt: 'show rows in people' }),
}).then((r) => r.json());尽可能将密钥排除在浏览器打包之外(通过 React 应用的后端进行代理)。仅用于本地演示时,Vite 环境变量是可以的。
CORS
CORS_ORIGIN=* 允许任何 React 来源。或者设置逗号分隔的列表:
CORS_ORIGIN=http://localhost:5173,http://localhost:3001布局
src/
agents/
mongo/ # Agent 1
excel/ # Agent 2
catalog.ts # Public agent list
orchestrator/ # Plain-English → tool calls (LLM or rules)
mcp/ # MCP factory + stdio
http/ # REST + /mcp + login auth
shared/db/ # Mongo connection helpers
data/workbook.xlsxCursor(stdio)
.cursor/mcp.json 仍然指向 src/mcp/stdio.ts。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants like Claude to interact with MongoDB databases through standardized MCP tools. Supports full CRUD operations, aggregations, and natural language queries with Clean Architecture and dual transport modes (STDIO/HTTP).
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server for MongoDB operations, enabling AI assistants to interact with MongoDB databases through a standardized interface.314MIT
- AlicenseNot gradedqualityBmaintenanceSelf-hosted MCP server that bridges your MongoDB or PostgreSQL database to AI agents, with sandbox isolation and field-level control.73MIT
- AlicenseNot gradedqualityBmaintenanceFeature-rich MCP server for MongoDB with multi-connection support, enabling users to interact with multiple MongoDB clusters simultaneously, perform CRUD operations, run aggregations, diagnostics, and more, all through natural language.23MIT
Related MCP Connectors
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
GibsonAI MCP server: manage your databases with natural language
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kartikchauhan563/MCPServer'
If you have feedback or need assistance with the MCP directory API, please join our Discord server