Skip to main content

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 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

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

iflow_mcp_lstm_kirigaya_usermcp-0.1.2.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

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

Hashes for iflow_mcp_lstm_kirigaya_usermcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f9bd90e872ca339fd4edbdfdcc7ff353567d4cdffe17a5b861e78aaf43e8355b
MD5 6bb007c312834708cb6e99659edc4e64
BLAKE2b-256 d5fa7c3de8631ee456e4540a34671cc1c52581e56f06eb27ad85725510f3e140

See more details on using hashes here.

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

Hashes for iflow_mcp_lstm_kirigaya_usermcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5709e285ad09e46283a997d93d5c5e5b5792a7fd6b5232adadb890c79ad8c52f
MD5 b8be5038374df56c41838d7071c5cbf9
BLAKE2b-256 2ef4d2157dea2bdfb6f549892568b8936bf2406a94566b8883edda380844b2dd

See more details on using hashes here.

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