- Explore MCP Servers
- contextbase-cli
Contextbase Cli
What is Contextbase Cli
Contextbase-cli is a command line interface designed for interacting with the ContextBase MCP API, allowing users to manage memory keys efficiently.
Use cases
Use cases include storing user preferences, managing session data, retrieving configuration settings, and searching for specific data points within a larger dataset.
How to use
To use contextbase-cli, you need to install it globally using npm or run it with npx. After installation, authenticate your account using the signup or login commands, and then use commands like set, get, delete, list, and search to manage your memory keys.
Key features
Key features include the ability to set memory keys with optional time-to-live (TTL), retrieve stored values, delete keys, list all keys, and search for specific keys based on queries.
Where to use
Contextbase-cli can be used in various fields such as application development, data management, and any scenario that requires efficient storage and retrieval of key-value pairs.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Contextbase Cli
Contextbase-cli is a command line interface designed for interacting with the ContextBase MCP API, allowing users to manage memory keys efficiently.
Use cases
Use cases include storing user preferences, managing session data, retrieving configuration settings, and searching for specific data points within a larger dataset.
How to use
To use contextbase-cli, you need to install it globally using npm or run it with npx. After installation, authenticate your account using the signup or login commands, and then use commands like set, get, delete, list, and search to manage your memory keys.
Key features
Key features include the ability to set memory keys with optional time-to-live (TTL), retrieve stored values, delete keys, list all keys, and search for specific keys based on queries.
Where to use
Contextbase-cli can be used in various fields such as application development, data management, and any scenario that requires efficient storage and retrieval of key-value pairs.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
ContextBase CLI
A powerful Command Line Interface for interacting with the ContextBase MCP API.
Overview
ContextBase CLI provides a simple and efficient way to manage your memory keys through the ContextBase service. Store, retrieve, search, and manage your data with straightforward commands.
Installation
# Install globally
npm install -g contextbase-cli
# Or use with npx
npx contextbase-cli <command>
Authentication
Before using the CLI, you need to authenticate:
# Sign up for a new account
contextbase signup <email> <password>
# Login to existing account
contextbase login <email> <password>
# Logout when done
contextbase logout
Usage
Set a Memory Key
Store a key-value pair in your ContextBase memory:
contextbase set <key> <value> [--ttl <seconds>]
Options:
--ttl <seconds>: Time-to-live in seconds (default: 86400 - 24 hours)
Example:
contextbase set user.preferences '{"theme":"dark","fontSize":14}' --ttl 604800
Get a Memory Key
Retrieve a stored value by its key:
contextbase get <key>
You can also get the output in JSON format:
contextbase get <key> --json
Example:
contextbase get user.preferences
Delete a Memory Key
Remove a key from your memory:
contextbase delete <key>
List All Memory Keys
View all your stored memory keys:
contextbase list
You can also get the output in JSON format:
contextbase list --json
Search Memory Keys
Find keys matching a specific query:
contextbase search <query>
You can also get the search results in JSON format:
contextbase search <query> --json
Examples
# Store user preferences
contextbase set user.preferences '{"theme":"dark"}'
# Store temporary session data (expires in 1 hour)
contextbase set session.token 'abc123xyz' --ttl 3600
# Retrieve user preferences
contextbase get user.preferences
# Retrieve user preferences in JSON format
contextbase get user.preferences --json
# Search for all user-related keys
contextbase search user
# Search for all user-related keys in JSON format
contextbase search user --json
# List all stored keys
contextbase list
# List all stored keys in JSON format
contextbase list --json
# Remove a key
contextbase delete session.token
Development
If you want to contribute or modify the CLI:
# Clone the repository
git clone https://github.com/imfeniljikadara/contextbase-cli.git
cd contextbase-cli
# Install dependencies
npm install
# Build the project
npm run build
# Run in development mode
npm link
License
MIT
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










