API KEY
AI
Connect your AI agent to Hugging Face MCP to search Spaces, papers, and Hub repositories, retrieve repository metadata, query the Hub in natural language, fetch documentation pages, and generate images from text prompts. Agents can explore the full Hugging Face ecosystem under the credentials of the authorizing user.
from langchain_mcp_adapters.client import MultiServerMCPClient
from scalekit import ScalekitClient
client = ScalekitClient(env_url=ENV_URL, client_id=CLIENT_ID, client_secret=SECRET)
token = client.agent.get_token(user_id="user_id", connector="huggingfacemcp")
mcp = MultiServerMCPClient({
"huggingfacemcp": {
"url": "https://mcp.scalekit.com/huggingfacemcp",
"headers": {"Authorization": "Bearer " + token}
}
})
tools = await mcp.get_tools()import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";
const client = new ScalekitClient({ envUrl, clientId, clientSecret });
const token = await client.agent.getToken({ userId: "user_id", connector: "huggingfacemcp" });
const openai = new OpenAI();
// Connect to MCP at https://mcp.scalekit.com/huggingfacemcp
// Pass: Authorization: Bearer + tokenimport Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";
const client = new ScalekitClient({ envUrl, clientId, clientSecret });
const token = await client.agent.getToken({ userId: "user_id", connector: "huggingfacemcp" });
const anthropic = new Anthropic();
// Connect to MCP at https://mcp.scalekit.com/huggingfacemcp
// Pass: Authorization: Bearer + tokenfrom google.adk.agents import LlmAgent
from scalekit import ScalekitClient
client = ScalekitClient(env_url=ENV_URL, client_id=CLIENT_ID, client_secret=SECRET)
token = client.agent.get_token(user_id="user_id", connector="huggingfacemcp")
# Connect to MCP at https://mcp.scalekit.com/huggingfacemcp
# Pass: Authorization: Bearer + token// shared token
audit → bot_service_account
// scalekit
audit → user_abc ✓