We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/srinath1/MCP_Calculate_Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
test_server.py•682 B
#!/usr/bin/env python3
"""Quick test to verify server imports work"""
import sys
sys.path.insert(0, '.')
try:
from mcp.server.fastmcp import FastMCP
print("✓ MCP FastMCP imported successfully")
# Try importing the server
import server
print("✓ server.py imported successfully")
print("✓ Server is ready!")
print("\nTo connect to MCP Inspector:")
print("1. Open http://localhost:6274")
print("2. Add server with command:")
print(f" {sys.executable} {__file__.replace('test_server.py', 'server.py')}")
except Exception as e:
print(f"✗ Error: {e}")
import traceback
traceback.print_exc()