Skip to main content
Glama

Stock Data MCP Server

by xj-bear
index.js758 B
#!/usr/bin/env node const { spawn } = require('child_process'); const path = require('path'); // Path to the Python server script const serverPath = path.join(__dirname, 'server.py'); // Spawn the Python process // Assuming 'python' is in the system PATH. Users might need to adjust this to 'python3' if needed. const pythonProcess = spawn('python', [serverPath], { stdio: 'inherit' }); pythonProcess.on('close', (code) => { process.exit(code); }); pythonProcess.on('error', (err) => { console.error('Failed to start Python server:', err); console.error('Please ensure Python is installed and "python" is in your PATH.'); console.error('You also need to install dependencies: pip install mcp akshare pandas starlette uvicorn httpx'); });

Latest Blog Posts

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/xj-bear/stockdata-mcp'

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