@prompthub/mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@prompthub/mcppublish the current session to PromptHub"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@prompthub/mcp
MCP server for PromptHub. Publish, fetch, list, update and search prompt repositories from Claude Code or Codex.
1. Get a token
Sign in at https://www.awesome-prompt.com → Settings → API tokens → create a token. Copy the ph_… value (shown once).
2. Configure
Either set an environment variable:
export PROMPTHUB_TOKEN=ph_xxx
# optional, defaults to https://www.awesome-prompt.com
export PROMPTHUB_BASE_URL=https://www.awesome-prompt.com…or create ~/.prompthub/config.json:
{ "token": "ph_xxx", "baseUrl": "https://www.awesome-prompt.com" }Environment variables take precedence over the file.
3. Register the server
Claude Code:
claude mcp add prompthub --env PROMPTHUB_TOKEN=ph_xxx -- npx -y @prompthub/mcpCodex — add to ~/.codex/config.toml:
[mcp_servers.prompthub]
command = "npx"
args = ["-y", "@prompthub/mcp"]
env = { PROMPTHUB_TOKEN = "ph_xxx" }4. Tools
Tool | What it does |
| Verify the token; show your handle/name |
| Search public repos by keyword |
| Fetch one repo (owner/name) with its file tree |
| List your repos, or a user's public repos |
| Create a repo from explicit fields |
| Full-replace one of your repos |
| Distill the current session into a reusable repo and publish |
| Show the exact |
5. First run
Confirm it's wired up — ask your assistant:
"Use prompthub_whoami to check my PromptHub login."
You should see your handle. Then publish:
"Publish the prompt we just wrote to PromptHub as a private repo called
my-first-prompt."
The assistant will call prompthub_publish_session and reply with the new repo URL (e.g. https://www.awesome-prompt.com/@you/my-first-prompt). If it's unsure of the format, it can call prompthub_describe_file_format first.
License
MIT
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/LionelHao/prompthub-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server