Skip to main content
Glama

MCP Personal Assistant Agent

index.js1.19 kB
import dotenv from 'dotenv'; import { createMCPServer } from '@anthropic-ai/mcp-server'; import { initializeLogger } from './utils/logger.js'; import modules from './modules/index.js'; import config from './config/index.js'; // Load environment variables dotenv.config(); // Initialize logger const logger = initializeLogger(); async function startServer() { try { logger.info('Starting MCP Personal Assistant server...'); // Create MCP server with our modules const server = createMCPServer({ name: "Personal Assistant Agent", description: "A versatile personal assistant that helps with calendar, tasks, emails, and more", functions: modules, config: config }); // Start the server await server.start(); logger.info(`MCP Personal Assistant server started successfully`); // Handle shutdown process.on('SIGINT', async () => { logger.info('Shutting down MCP Personal Assistant server...'); await server.stop(); process.exit(0); }); } catch (error) { logger.error(`Failed to start MCP Personal Assistant server: ${error.message}`); process.exit(1); } } startServer();

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/zhangzhongnan928/mcp-pa-ai-agent'

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