Skip to main content
Glama
LionelHao
by LionelHao

@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.comSettings → 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/mcp

Codex — 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

prompthub_whoami

Verify the token; show your handle/name

prompthub_search

Search public repos by keyword

prompthub_get_repo

Fetch one repo (owner/name) with its file tree

prompthub_list_repos

List your repos, or a user's public repos

prompthub_create_repo

Create a repo from explicit fields

prompthub_update_repo

Full-replace one of your repos

prompthub_publish_session

Distill the current session into a reusable repo and publish

prompthub_describe_file_format

Show the exact files[] JSON shapes (text/conversation/workflow)

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

F
license - not found
-
quality - not tested
C
maintenance

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