@prompthub/mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PROMPTHUB_TOKEN | Yes | Your PromptHub API token (ph_...). Required to authenticate. | |
| PROMPTHUB_BASE_URL | No | Base URL of the PromptHub server. Defaults to https://www.awesome-prompt.com. | https://www.awesome-prompt.com |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| prompthub_whoamiA | Verify the configured PromptHub token and return the authenticated user's handle and name. Use this to confirm which account prompts will be published under. |
| prompthub_searchA | Search public PromptHub repositories by keyword. Returns repo summaries (no file trees). An empty query returns no results. |
| prompthub_recommendA | Recommend proven, high-usage prompt repos from PromptHub for the user's current task. PROACTIVELY call this when the user wants to write or improve a prompt — community-tested prompts are often better starting points than drafting from scratch. Extract 1–5 short keyword variants from the task (include both the user's language and English) and pass them as |
| prompthub_get_repoA | Fetch one repository by owner handle and name, including its README and full file tree. Returns 'not found' if it does not exist or you cannot access it. |
| prompthub_list_reposA | List repositories. Omit 'owner' to list your own repos (including private). Provide a handle to list that user's public repos. |
| prompthub_organize_promptA | Call this FIRST whenever the user wants to upload, publish, share, or save a prompt to PromptHub (before create_repo / publish_session / update_repo). Returns the prompt-organize methodology: a step-by-step guide to (1) rewrite the user's raw prompt for clarity and (2) convert the genuinely reusable parts into PromptHub's {{variable}} template syntax (single-line, |
| prompthub_create_repoA | Create a new PromptHub repository from a full set of fields. Use this when the user explicitly provides repo content to publish. (To publish the CURRENT coding session, prefer prompthub_publish_session.) Call prompthub_describe_file_format if unsure of the files[] shape. |
| prompthub_update_repoA | Replace ALL content of one of YOUR repositories with the provided body. This is a FULL REPLACE, not a partial merge — any file you omit is DELETED. To change part of a repo, first call prompthub_get_repo, edit the returned fields, then send the COMPLETE set back (map the returned |
| prompthub_publish_sessionA | Distill the CURRENT coding session into a reusable PromptHub repository and publish it as a NEW repo. You (the assistant) must gather the relevant turns from this conversation yourself and shape them into one or more files — this tool cannot read the conversation on its own. Choose the file type that fits the session: - a single refined reusable prompt → a 'text' file (graph with exactly one node whose promptText holds the prompt); - a valuable multi-turn back-and-forth → a 'conversation' file with turns of { userPrompt, aiSummary? }; - a multi-step / multi-model pipeline → a 'workflow' file (graph of nodes + edges). Call prompthub_describe_file_format for the exact file shapes if unsure. STRIP secrets, API keys, absolute file paths, and project-specific noise — capture the reusable essence, not the raw transcript. 'visibility' is REQUIRED: choose 'private' unless the user clearly wants it public. If the user already handed you finished, structured repo content (with topics/README), use prompthub_create_repo instead. |
| prompthub_describe_file_formatA | Return the exact JSON shapes (with examples) for repo files[]: the text / conversation / workflow content kinds and the repoName/path naming rules. Call this before create_repo / update_repo / publish_session if unsure how to build files[]. To publish a GENERATED RESULT (doc/web page/image/file) instead of the prompt, call prompthub_describe_artifact_format. |
| prompthub_describe_runner_protocolA | Return the complete bundled public Workflow Runner Contract for agentic hosts that execute PromptHub Desktop run packages. No token or network request is required. This tool only describes the protocol; it does not create, execute, write, or monitor a run package. |
| prompthub_publish_artifactA | Publish a GENERATED text RESULT (Markdown or HTML, ≤256 KiB) to a repo's Artifacts (产物) panel. This is NOT the prompt itself — for the prompt use create_repo/publish_session; for binary files (image/video/pdf) use prompthub_upload_artifact. The server APPENDS (no de-dup); to REPLACE, prompthub_get_repo + prompthub_delete_artifact the old id first. See prompthub_describe_artifact_format. |
| prompthub_upload_artifactA | Upload a local BINARY file (image/video/pdf) as a generated artifact to a repo's Artifacts (产物) panel. Pass a local |
| prompthub_delete_artifactA | Delete one artifact from a repo by its id (get ids from prompthub_get_repo's artifacts[]). Returns 'not found' if it does not exist or you cannot access it. Use this + republish to replace an artifact (the server appends, it does not de-duplicate). |
| prompthub_describe_artifact_formatA | Explain PromptHub ARTIFACTS (generated outputs in the repo's 产物/Artifacts panel) vs repo FILES (the prompt itself), and how to publish each artifact type (inline MARKDOWN/HTML vs binary upload). Call this when the user asks to publish a generated result / output / 产物. |
| prompthub_delete_repoA | Delete one repo you own by owner/name. This permanently removes the repo rows and asks PromptHub to clean stored artifact/reference objects. A 404 means the repo does not exist or you cannot access it. |
| prompthub_upload_referenceA | Upload a local file as a PromptReference input asset, bound to a prompt unit. This is NOT a generated artifact. Set filePath to an existing repo file path; targetKind is TEXT_FILE, WORKFLOW_NODE, or CONVERSATION_TURN. targetId is required for node/turn targets. See prompthub_describe_reference_format. |
| prompthub_delete_referenceA | Delete one PromptReference input asset by id. Get ids from prompthub_get_repo promptReferences[]. A 404 means it does not exist or you cannot access it. |
| prompthub_describe_reference_formatA | Explain PromptHub PromptReferences (input assets) vs artifacts (generated outputs), and the target fields for TEXT_FILE / WORKFLOW_NODE / CONVERSATION_TURN bindings. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 19 tools
Most tools target a clearly distinct resource+action (repo CRUD, artifact publish/upload/delete, reference upload/delete), and descriptions explicitly disambiguate close pairs like create_repo vs publish_session and publish_artifact vs upload_artifact. The main friction is the cluster of four prompthub_describe_* schema-doc tools (file/artifact/reference/runner protocol) plus organize_prompt, which an agent may hesitate between when it just wants 'how do I format this'.
Every tool uses the same prompthub_ prefix followed by a snake_case verb_noun or verb_object phrase (get_repo, create_repo, delete_artifact, upload_reference, describe_file_format). The handful of deviations (whoami, recommend) are still snake_case and idiomatic rather than a different convention.
19 tools for a prompt-repo platform is on the heavy side; four separate describe_* documentation tools plus organize_prompt could plausibly be folded into fewer calls or into the other tools' descriptions. Each remaining tool does earn its place, so it is not bloated, just borderline.
Repo lifecycle is fully covered (list/get/create/update/delete), artifacts have publish/upload/delete and are enumerable via get_repo, and references have upload/delete plus a schema explainer. The notable gap is granular file editing — update_repo is a destructive full replace with no per-file add/remove/rename operation, and artifacts have no true update (delete+republish workaround).