prompthub-mcp
v1.2.2
Published
MCP client for PromptHub - Personal Prompt Repository
Maintainers
Readme
PromptHub MCP Client
NPM 包方式连接 PromptHub MCP Server。
注意:这是兼容层,首选推荐方式是使用 streamable-http,配置更简单且无需安装额外依赖。 只有当您的 MCP 客户端不支持
type: "streamableHttp"时才使用此方式。
Installation
npm install -g prompthub-mcpOr use directly with npx:
npx prompthub-mcpConfiguration
Add to your MCP client config (e.g., Claude Desktop):
{
"mcpServers": {
"prompt-hub": {
"command": "npx",
"args": ["-y", "prompthub-mcp"],
"env": {
"PROMPTHUB_URL": "http://your-server:7878/mcp"
}
}
}
}Environment Variables
| Variable | Required | Description |
|----------|----------|-------------|
| PROMPTHUB_URL | Yes | Full URL to your PromptHub MCP endpoint |
Examples
Local Network
{
"env": {
"PROMPTHUB_URL": "http://192.168.1.100:7878/mcp"
}
}Public Access (HTTPS)
{
"env": {
"PROMPTHUB_URL": "https://your-domain.com/mcp"
}
}With Access Link Authentication
{
"env": {
"PROMPTHUB_URL": "http://your-server:7878/mcp?accessLink=your-secret-key"
}
}Available Tools
Once connected, the following tools are available:
- search_prompts - Semantic search for prompts
- list_tags - List all tags
- get_prompt_by_id - Get a specific prompt
- get_favorites - Get favorited prompts
License
MIT
