Skip to main content
Glama
Anwesh43

Apify MCP Server Template

by Anwesh43
base_http_client.py770 B
import requests from typing import Dict class BaseHttpClient: def __init__(self, base_url : str): self.base_url = base_url def getCall(self, endpoint : str, headers : Dict): response = requests.get(f"{self.base_url}/{endpoint}", headers = headers) return response.json() def postCall(self, endpoint : str, data : Dict, headers : Dict): print("DATA", data) response = requests.post(f"{self.base_url}/{endpoint}", json = data, headers = headers) return response.json() def postCallText(self, endpoint : str, data : Dict, headers : Dict): print("DATA", data) response = requests.post(f"{self.base_url}/{endpoint}", json = data, headers = headers) return response.text

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/Anwesh43/ollama-apify-mcp'

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