Skip to main content

Prompt Forge MCP server for secure LLM gateway access

Project description

Prompt Forge MCP Server

Python MCP server that exposes Prompt Forge secure gateway tools over the Model Context Protocol.

Install

pip install promptforge-mcp

Quick Start

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "promptforge": {
      "command": "promptforge-mcp",
      "env": {
        "PROMPTFORGE_API_KEY": "your-api-key",
        "PROMPTFORGE_ORG_ID": "your-org-id",
        "PROMPTFORGE_ADMIN_TOKEN": "your-admin-token"
      }
    }
  }
}

Claude Code

claude mcp add promptforge -- promptforge-mcp

Then set environment variables in your shell before launching.

Run directly (stdio)

export PROMPTFORGE_API_KEY="your-api-key"
promptforge-mcp

Run as HTTP/SSE server

promptforge-mcp --http
# or
MCP_TRANSPORT=http MCP_PORT=8765 promptforge-mcp

Environment Variables

Variable Required Default Description
PROMPTFORGE_API_KEY Yes (for gateway) API key for gateway requests
PROMPTFORGE_ADMIN_TOKEN Yes (for admin tools) Token for secure mode and audit tools
PROMPTFORGE_ORG_ID Yes (for admin tools) Organization ID
PROMPTFORGE_API_BASE No https://api.secureprompt.tech API base URL
PROMPTFORGE_GATEWAY_URL No {API_BASE}/v1/gateway/requests Gateway endpoint
PROMPTFORGE_TIMEOUT No 30 Request timeout in seconds
PROMPTFORGE_MCP_TOOLS_PATH No Override path for tool definitions JSON
MCP_RATE_LIMIT_PER_MINUTE No 60 Rate limit per minute
MCP_TRANSPORT No stdio Transport mode (stdio or http)
MCP_HOST No 0.0.0.0 SSE server host
MCP_PORT No 8765 SSE server port

MCP Tools

Tool Description
promptforge.secure_generate Send a request through the secure LLM gateway
promptforge.redact_and_tokenize Tokenize sensitive entities using Secure Mode
promptforge.policy_dry_run Evaluate an egress policy without executing a call
promptforge.audit_query Query audit logs (admin-only)
promptforge.detokenize Detokenize content with a token vault reference

Docker

docker build -t promptforge-mcp .
docker run -p 8765:8765 \
  -e PROMPTFORGE_API_KEY=your-key \
  -e PROMPTFORGE_ORG_ID=your-org \
  -e PROMPTFORGE_ADMIN_TOKEN=your-token \
  promptforge-mcp

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

promptforge_mcp-0.1.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

promptforge_mcp-0.1.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file promptforge_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: promptforge_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for promptforge_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b45d007e9b31488831cd559249c3521a3b8188bbad16b0cc31b88a63c380b8a0
MD5 04bd7df76ed079c0f977b0c1f7a749e5
BLAKE2b-256 a4311ee20710c8148fe10ae4c941ca28c3c4de14745f4a9479e17a9f513459ae

See more details on using hashes here.

File details

Details for the file promptforge_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for promptforge_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 430ab2e58d62d9afd726930ac21b144631438b85e8ff18171d59203c6ff061a3
MD5 647024da026d207b2753c31fc2c339d3
BLAKE2b-256 9e4f423337c0a64ef96fcfa5f0ecdf2074a3da8c2fd381b6e296cd15085db9e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page