User preference management MCP server with no database dependencies
Project description
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 preferencesusermcp_insert_user_profile: Insert user preferencesusermcp_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_profilewhen the context contains relevant tokens like the user's name or other personal information - Invoke
usermcp_insert_user_profilewhen the relevant information is triggered in your context - Invoke
usermcp_delete_user_profilewhen the user's feedback is different from what you expected
Dependencies
- Python >= 3.10
- mcp >= 1.12.3
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iflow_mcp_lstm_kirigaya_usermcp-0.1.2.tar.gz.
File metadata
- Download URL: iflow_mcp_lstm_kirigaya_usermcp-0.1.2.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9bd90e872ca339fd4edbdfdcc7ff353567d4cdffe17a5b861e78aaf43e8355b
|
|
| MD5 |
6bb007c312834708cb6e99659edc4e64
|
|
| BLAKE2b-256 |
d5fa7c3de8631ee456e4540a34671cc1c52581e56f06eb27ad85725510f3e140
|
File details
Details for the file iflow_mcp_lstm_kirigaya_usermcp-0.1.2-py3-none-any.whl.
File metadata
- Download URL: iflow_mcp_lstm_kirigaya_usermcp-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5709e285ad09e46283a997d93d5c5e5b5792a7fd6b5232adadb890c79ad8c52f
|
|
| MD5 |
b8be5038374df56c41838d7071c5cbf9
|
|
| BLAKE2b-256 |
2ef4d2157dea2bdfb6f549892568b8936bf2406a94566b8883edda380844b2dd
|