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 iflow-mcp_lstm-kirigaya-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 iflow-mcp_lstm-kirigaya-usermcp 0.1.2
File Size Uploaded
iflow_mcp_lstm_kirigaya_usermcp-0.1.2.tar.gz 4.3 kB Details

Built distribution (wheel)

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

Total release size: 10.0 kB

Release files / iflow_mcp_lstm_kirigaya_usermcp-0.1.2.tar.gz

Download URL iflow_mcp_lstm_kirigaya_usermcp-0.1.2.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f9bd90e872ca339fd4edbdfdcc7ff353567d4cdffe17a5b861e78aaf43e8355b
BLAKE2b-256 checksum
How to use checksums
d5fa7c3de8631ee456e4540a34671cc1c52581e56f06eb27ad85725510f3e140
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

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

Download URL iflow_mcp_lstm_kirigaya_usermcp-0.1.2-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5709e285ad09e46283a997d93d5c5e5b5792a7fd6b5232adadb890c79ad8c52f
BLAKE2b-256 checksum
How to use checksums
2ef4d2157dea2bdfb6f549892568b8936bf2406a94566b8883edda380844b2dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

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