# PromptHub — MCP server on mcp.ai > Connect your PromptHub account and use 4 tools for artificial intelligence straight from your AI agent. Connect with your own API key. PromptHub provides versioned prompt management, retrieval, and execution through its API. By: mcp.ai · official Page: https://mcp.ai/prompt_hub ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_prompt_hub?ms=1787291400000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/prompt_hub/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/prompt_hub/ Authorization: Bearer sk_live_… # create one at https://mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs How to use (MCP or REST), markdown: https://mcp.ai/prompt_hub/skill.md Postman collection (v2.1): https://mcp.ai/prompt_hub/postman.json ## Tools - prompt_hub_get_current_team() — Return the current PromptHub team ID for the connected account. Use it when a team-scoped operation must target an explicit team. - prompt_hub_get_project_head(branch?: string, variables?: object, project_id: integer, use_fallback_defaults?: boolean) — Retrieve a project's latest committed prompt and model configuration, with optional branch and variable resolution. - prompt_hub_list_projects(group?: string, model?: string, team_id?: integer, provider?: string) — List projects in a PromptHub team, optionally filtered by group, model, or provider. - prompt_hub_run_project(hash?: string, branch?: string, variables?: object, project_id: integer) — Execute a committed PromptHub project prompt with optional variables and return the generated text, usage, cost, and timing metadata. This invokes the configured LLM, consumes the PromptHub plan's LLM ## Example prompts - "What can I do in PromptHub?" - "Show me a summary of my PromptHub account" ## Links Docs: https://mcp.ai/docs/mcps/prompt_hub Website: https://mcp.ai/mcps/prompt_hub