Skip to main content
Glama

MySQL MCP Server

by QiPanTanYi
main.ts621 B
import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import * as dotenv from 'dotenv'; dotenv.config(); async function bootstrap() { const app = await NestFactory.create(AppModule); // 启用 CORS app.enableCors({ origin: '*', methods: 'GET,HEAD,PUT,PATCH,POST,DELETE', credentials: true, }); const port = process.env.CHAT_API_PORT || 3000; await app.listen(port); console.log(`🚀 Chat API Server running on http://localhost:${port}`); console.log(`📊 MCP Server will be available on port ${process.env.MCP_SERVER_PORT || 3001}`); } bootstrap();

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/QiPanTanYi/mysql-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server