Skip to main content

usermcp

With just one line of code, your MCP or agent can record and manage user preferences with the user profile MCP, without requiring any database dependencies.

Introduction

usermcp is a lightweight user preference management component designed to simplify the process of recording and managing user preferences for MCPs or agents. It provides simple interfaces for recording, querying, updating, and deleting user preferences without requiring any database dependencies.

Features

  • No Database Dependencies: Manage user preferences without installing or configuring a database
  • One-line Integration: Integrate user preference management into your MCP or agent with just one line of code
  • Full CRUD Operations: Supports Create, Read, Update, Delete operations for user preferences
  • Automatic Prompt Management: Built-in prompt management for user preferences

Installation

pip install usermcp

Usage

Basic Usage

from mcp.server.fastmcp import FastMCP
from usermcp import register_user_profile_mcp

# Create FastMCP instance
mcp = FastMCP('Your MCP Name')

# ...
# implement your MCP logic here
# ...

# Register user profile management functions
register_user_profile_mcp(mcp)

# Run MCP service
mcp.run()

Core Functions

usermcp provides the following tool functions:

  • usermcp_query_user_profile: Query user preferences
  • usermcp_insert_user_profile: Insert user preferences
  • usermcp_delete_user_profile: Delete user preferences

Prompt Management

usermcp includes built-in prompt management that automatically invokes the appropriate tool functions based on context:

  • Actively invoke usermcp_query_user_profile when the context contains relevant tokens like the user's name or other personal information
  • Invoke usermcp_insert_user_profile when the relevant information is triggered in your context
  • Invoke usermcp_delete_user_profile when the user's feedback is different from what you expected

Dependencies

  • Python >= 3.10
  • mcp >= 1.12.3

License

MIT

Metadata

Release files for usermcp 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for usermcp 0.1.2
File Size Uploaded Provenance
usermcp-0.1.2.tar.gz 4.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for usermcp 0.1.2
File Interpreter ABI Platform
usermcp-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.8 kB

Release files / usermcp-0.1.2.tar.gz

Download URL usermcp-0.1.2.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c249dd647752b7a2383900df7d7b363baaf34273bec777fb87c7641649beff07
BLAKE2b-256 checksum
How to use checksums
ee2bd2d1eb0ed7de8ee6806cc5bb424a70c2a59743a10ab7e39862ea358282b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / usermcp-0.1.2-py3-none-any.whl

Download URL usermcp-0.1.2-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b3218d51137a03315484f9db54bbe7ee0b1a8a48566445e106a7eae43b674408
BLAKE2b-256 checksum
How to use checksums
dd00036479ad3d61c9236a02c7c74948e644af055977f6f6523317cbb9c8d1b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Security for usermcp 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page