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.1.tar.gz (26.2 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.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: credential_manager_mcp-1.0.1.tar.gz
  • Upload date:
  • Size: 26.2 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.1.tar.gz
Algorithm Hash digest
SHA256 67bdb9ac0f35d1b668a3862f0844976b74f281f544e0f0d6470c5b37687ace02
MD5 80f29b242913297e811973c850499a76
BLAKE2b-256 e0f4d6c3d3de786e122074c1e717b61a0f78cd1564968054d4460fb62accb8f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for credential_manager_mcp-1.0.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for credential_manager_mcp-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8e5b553c22b29f44dcf439e1a46a29438540728d1a05a70770b459958bcf684d
MD5 8eb357267188a612940eb6ff2fc20257
BLAKE2b-256 ef8b9aed9dd658c70d9fab517ebb1eb8263332bb96b0d94453ced9b2f7f734e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for credential_manager_mcp-1.0.1-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