Skip to main content
Glama

http-4-mcp

Mulan Permissive Software License, Version 2
12
  • Linux
  • Apple
run.py922 B
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import argparse from mcp_server import HttpMcpServer def main(): parser = argparse.ArgumentParser(description='Start HTTP-4-MCP middleware server') parser.add_argument('--host', help='Server host address') parser.add_argument('--port', type=int, help='Server port') parser.add_argument('--config', default='config/config.json', help='Global config file path') parser.add_argument('--apis', default='config/apis.json', help='API config file path') args = parser.parse_args() # Check if config file exists if not os.path.exists(args.apis): print("Error: API config file does not exist") sys.exit(1) # Create and start the server server = HttpMcpServer(config_path=args.config, apis_path=args.apis) server.run(host=args.host, port=args.port) if __name__ == "__main__": main()

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/Tght1211/http-4-mcp'

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