Connect PinglyMCP to your LLM
PinglyMCP is a remote Streamable HTTP MCP server. OAuth-capable clients can authorize through the MCP flow; this page shows the private-key setup for local clients and API integrations. Give your client the server URL and a PinglyMCP API key, then the model can discover and call tools such as ping.
Before you start
- Create a key at Dashboard → API Keys.
- Copy the key when it is shown. PinglyMCP stores only its hash.
- Use the MCP endpoint below.
MCP endpoint
https://mcp.pinglymcp.comLM Studio
LM Studio supports remote MCP servers. The simplest persistent setup is to add PinglyMCP to LM Studio's mcp.json.
- Open LM Studio and load a model that supports tool use.
- Open the Program panel, choose Install, then Edit mcp.json.
- Add the PinglyMCP server configuration below and replace
pmcp_YOUR_API_KEY. - Save the file and enable the PinglyMCP integration for your chat.
- Ask the model something like “Ping example.com and tell me whether it is reachable.”
LM Studio mcp.json
{
"mcpServers": {
"pinglymcp": {
"url": "https://mcp.pinglymcp.com",
"headers": {
"Authorization": "Bearer pmcp_YOUR_API_KEY"
}
}
}
}OpenAI Responses API
OpenAI's Responses API can connect directly to remote MCP servers. The example below gives the model access only to PinglyMCP's ping tool.
1. Install and set credentials
pip install openai
export OPENAI_API_KEY="YOUR_OPENAI_API_KEY"
export PINGLYMCP_API_KEY="pmcp_YOUR_API_KEY"2. Call PinglyMCP from an OpenAI model
import os
from openai import OpenAI
client = OpenAI()
response = client.responses.create(
model="gpt-5.6",
input="Ping example.com and tell me whether it is reachable.",
tools=[
{
"type": "mcp",
"server_label": "pinglymcp",
"server_url": "https://mcp.pinglymcp.com",
"headers": {
"Authorization": f"Bearer {os.environ['PINGLYMCP_API_KEY']}"
},
"allowed_tools": ["ping"],
"require_approval": "never"
}
]
)
print(response.output_text) The OpenAI API key authenticates your request to OpenAI. The separate PINGLYMCP_API_KEY is forwarded only to the PinglyMCP MCP server through the MCP tool configuration.
OpenAI Python SDK with LM Studio
LM Studio exposes an OpenAI-compatible /v1/responses endpoint, so you can reuse the OpenAI Python SDK while running the model locally. Enable Remote MCP in LM Studio's Developer settings first.
import os
from openai import OpenAI
client = OpenAI(
base_url="http://localhost:1234/v1",
api_key="lm-studio"
)
response = client.responses.create(
model="YOUR_LM_STUDIO_MODEL_ID",
input="Use PinglyMCP to ping example.com and summarize the result.",
tools=[
{
"type": "mcp",
"server_label": "pinglymcp",
"server_url": "https://mcp.pinglymcp.com",
"headers": {
"Authorization": f"Bearer {os.environ['PINGLYMCP_API_KEY']}"
},
"allowed_tools": ["ping"]
}
]
)
print(response.output_text)Replace YOUR_LM_STUDIO_MODEL_ID with the identifier of the model you have loaded in LM Studio.
What the model can ask PinglyMCP to do
pingCheck reachability of a public IPv4 address, IPv6 address, or domain name.
describe_websiteDescribe the visible content of a public webpage with AI.
contact_websiteContact a website owner by email or contact form; AI assistance is optional and disabled by default.
get_accountReturn the account associated with the current PinglyMCP key.