Home / Client setup
Setup
Connect your AI to Madely
MCP endpoint: https://api.madely.ai/mcp. Get a free test key with POST /v1/sandbox/keys (no signup). If your client cannot send headers, connect with no auth: the MCP endpoint then mints a sandbox key for you, so every tool still works in test mode. Formats checked against vendor docs on 2026-12-02. Markdown version: /connect/clients.md.
ChatGPT (web)
- Open ChatGPT on the web, go to Plugins, press the plus button and choose Add custom MCP server.
- Name: Madely. Server URL: https://api.madely.ai/mcp. Authentication: No authentication (test mode mints a sandbox key) or paste nothing else.
- Review the risk notice, then Create as a plugin and install it.
- In a chat type @ and pick Madely, then ask: "Find a mug and quote 24 to Denver, ZIP 80202."
ChatGPT accepts SSE and streaming HTTP, and treats tools without readOnlyHint as write actions that need confirmation. Madely marks its read-only tools, so lookups run without prompts.
Sources: OpenAI: Add custom MCP server
Claude (claude.ai and Claude Desktop)
- Open Customize, then Connectors, and add a custom connector.
- Enter https://api.madely.ai/mcp as the server URL. Claude connects from Anthropic's cloud, so the URL must be public HTTPS on port 443.
- Enable the Madely connector in a chat and turn off any tools you do not want used.
Remote connectors are brokered by your Claude account even in Claude Desktop. claude_desktop_config.json is for local servers only.
Sources: Claude Help: custom connectors with remote MCP
Claude Code
- Run the command below in your terminal (user scope keeps it available in every project).
- Run claude mcp list to confirm it is connected, then ask Claude Code to use Madely.
Terminal
claude mcp add --transport http madely https://api.madely.ai/mcp
# with a sandbox key:
claude mcp add --transport http madely https://api.madely.ai/mcp --header "Authorization: Bearer $MADELY_API_KEY"
.mcp.json (project scope)
{
"mcpServers": {
"madely": {
"type": "http",
"url": "https://api.madely.ai/mcp",
"headers": {
"Authorization": "Bearer ${MADELY_API_KEY}"
}
}
}
}
Sources: Claude Code: connect to tools via MCP
Grok (xAI API remote MCP tool)
- In an xAI Responses API request add Madely to the tools array.
- Optionally set allowed_tools to the read-only tools first (list_products, get_print_spec, validate_print_file, get_quote).
For the consumer Grok app, add a custom connector from the connectors page (see /connect). The API form below is the one verified against xAI developer docs.
curl
curl https://api.x.ai/v1/responses \
-H "Content-Type: application/json" -H "Authorization: Bearer $XAI_API_KEY" \
-d '{"model":"<current Grok model>","input":"Quote 24 mugs to ZIP 80202 with Madely.","tools":[{"type":"mcp","server_url":"https://api.madely.ai/mcp","server_label":"madely","allowed_tools":["list_products","get_quote"]}]}'
Sources: xAI: Remote MCP tools
Cursor
- Create ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project).
- Put the key in an environment variable and reference it with ${env:NAME}; restart Cursor.
mcp.json
{
"mcpServers": {
"madely": {
"url": "https://api.madely.ai/mcp",
"headers": {
"Authorization": "Bearer ${env:MADELY_API_KEY}"
}
}
}
}
Sources: Cursor: Model Context Protocol (MCP), Cursor Help: MCP integrations
VS Code (GitHub Copilot)
- Run Chat: Open Customizations, choose MCP Servers, Add Server, HTTP, and enter the URL; or edit the file below.
- Verify with a low-impact call such as list_products and expand the tool call to confirm Madely answered.
The Copilot harness reads a top-level mcpServers object from ~/.copilot/mcp-config.json (personal) or .mcp.json at the workspace root. The older editor-managed .vscode/mcp.json uses a "servers" object; VS Code docs say that Local harness is deprecated and will be removed in February 2027.
.mcp.json (Copilot harness)
{
"mcpServers": {
"madely": {
"type": "http",
"url": "https://api.madely.ai/mcp",
"headers": {
"Authorization": "Bearer ${MADELY_API_KEY}"
}
}
}
}
.vscode/mcp.json (legacy Local harness)
{
"servers": {
"madely": {
"type": "http",
"url": "https://api.madely.ai/mcp"
}
}
}
Sources: VS Code: Add and use MCP servers, VS Code: MCP configuration reference
Any other MCP client
- Transport: streamable HTTP. URL: https://api.madely.ai/mcp. Methods: initialize, tools/list, tools/call, ping. GET returns 405.
- Auth (optional in test mode): Authorization: Bearer <sandbox key> or x-api-key: <sandbox key>.
- Discovery: /.well-known/mcp.json, /.well-known/api-catalog, /openapi.json, /llms.txt.
Smoke test
curl -s https://api.madely.ai/mcp -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Portable mcpServers JSON
{
"mcpServers": {
"madely": {
"url": "https://api.madely.ai/mcp"
}
}
}
Sources: MCP specification: transports