Skip to main content
Glama

Physics MCP Server

by BlinkZer0
start-phys-mcp.jsโ€ข1.23 kB
#!/usr/bin/env node /** * Phys-MCP Server Launcher * * This script launches the Phys-MCP server from any directory. * Use this in your MCP client configuration instead of the direct path. */ import { fileURLToPath } from 'url'; import { dirname, join } from 'path'; import { spawn } from 'child_process'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); // Find the server file relative to this script const serverPath = join(__dirname, '..', 'packages', 'server', 'dist', 'index.js'); console.error(`๐Ÿš€ Starting Phys-MCP server from: ${serverPath}`); // Launch the server const server = spawn('node', [serverPath], { stdio: 'inherit', cwd: __dirname }); // Handle process signals process.on('SIGINT', () => { console.error('๐Ÿ›‘ Received SIGINT, shutting down...'); server.kill('SIGINT'); process.exit(0); }); process.on('SIGTERM', () => { console.error('๐Ÿ›‘ Received SIGTERM, shutting down...'); server.kill('SIGTERM'); process.exit(0); }); server.on('error', (error) => { console.error('โŒ Server error:', error); process.exit(1); }); server.on('exit', (code) => { console.error(`๐Ÿ›‘ Server exited with code ${code}`); process.exit(code); });

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/BlinkZer0/Phys-MCP'

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