Skip to main content

A FastMCP server for securely managing API credentials locally

Project description

🔐 Credential Manager MCP Server

Test License: MIT Python 3.13+

A secure MCP server for managing API credentials locally. Read-only by default with simple JSON storage.

✨ Features

  • 🔒 Secure by default - Read-only mode prevents accidental changes
  • 📁 Simple storage - ~/.credential-manager-mcp/credentials.json
  • 🔧 Easy setup - Interactive shell script
  • 🔄 Multi-instance safe - Always reads fresh data from disk
  • 🎯 Minimal exposure - Shows only essential data

🚀 Quick Start

1. Install & Configure

# Install from PyPI
uvx credential-manager-mcp

Common config (Claude Desktop):

{
  "mcpServers": {
    "credential-manager": {
      "command": "uvx",
      "args": ["credential-manager-mcp"],
      "env": {
        "CREDENTIAL_MANAGER_READ_ONLY": "false"
      }
    }
  }
}

Devlopment config (run from source):

{
  "mcpServers": {
    "credential-manager": {
      "command": "uv",
      "args": [
        "--directory", "/path/to/credential-manager-mcp",
        "run", "credential-manager-mcp"
      ],
      "env": {
        "CREDENTIAL_MANAGER_READ_ONLY": "false"
      }
    }
  }
}

2. Add Credentials

# Interactive mode
./add-credential.sh

# Command line
./add-credential.sh "GitHub" "https://api.github.com" "ghp_token" "username" "2024-12-31T23:59:59"

🛠 Available Tools

Read-Only Mode (Default):

  • list_credentials() - List credentials (id, app name only)
  • get_credential_details(credential_id) - Get full details

Read-Write Mode:

  • add_credential(app, base_url, access_token, [user_name], [expires])
  • update_credential(credential_id, [fields...])
  • delete_credential(credential_id)

📋 Usage Examples

# List all credentials
list_credentials()
# {"credentials": [{"id": "abc...", "app": "GitHub"}], "count": 1}

# Get credential details
get_credential_details("credential-id")

# Add new credential (write mode only)
add_credential("GitHub", "https://api.github.com", "ghp_token", "user", "2024-12-31T23:59:59")

⚙️ Configuration

Environment Variables:

  • CREDENTIAL_MANAGER_READ_ONLY - Set to "false" for write operations (default: "true")

Expiration Format:

  • "2024-12-31T23:59:59" - ISO datetime
  • "never" - No expiration

🔒 Security

  • Read-only by default
  • Local storage only (~/.credential-manager-mcp/credentials.json)
  • File locking for safe concurrent access
  • Minimal data exposure in listings

🧪 Development

git clone https://github.com/mclamee/credential-manager-mcp.git
cd credential-manager-mcp
uv sync --dev
uv run pytest test/ -v

📄 License

MIT License - see LICENSE file for details.

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

credential_manager_mcp-1.0.0.tar.gz (26.5 kB view details)

Uploaded Source

Built Distribution

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

credential_manager_mcp-1.0.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file credential_manager_mcp-1.0.0.tar.gz.

File metadata

  • Download URL: credential_manager_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 26.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for credential_manager_mcp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d7d15e751ce1ee5942a19942650165ded5c618c3fc7131ce30e27d6f2e244a55
MD5 ccb74ee7c06e0ea1901dd017fe3a4ffd
BLAKE2b-256 a536e44fd2ed7973c01df3d7758a430994105109cd41f9520c3085d4145205e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for credential_manager_mcp-1.0.0.tar.gz:

Publisher: publish.yml on mclamee/credential-manager-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file credential_manager_mcp-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for credential_manager_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 646490a1fd86a1c795763d2b07b2f86371b1c2f739de4d7e7666530c0a1842a1
MD5 4ad2995188cdc35240a423a40a687180
BLAKE2b-256 14d4faca96f1a767b18d11a3101e734e99abec7e68ffa2d46124ade7c4324bc0

See more details on using hashes here.

Provenance

The following attestation bundles were made for credential_manager_mcp-1.0.0-py3-none-any.whl:

Publisher: publish.yml on mclamee/credential-manager-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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