Refineo AI Tools
CLI and MCP tools for Refineo - Transform AI-generated text into natural human writing.
Quick Start
Node.js / TypeScript
# Using bunx (recommended)
bunx refineo-cli login
# Using npx
npx refineo-cli login
# Global install
npm i -g refineo-cli && refineo login
Python
# Using uvx (recommended)
uvx refineo-cli login
# Using pipx
pipx run refineo-cli login
# Global install
pip install refineo-cli && refineo login
Commands
refineo login # Authenticate with your account
refineo logout # Clear stored credentials
refineo stats # Show usage statistics
refineo humanize "text" # Humanize AI-generated text
Humanize Options
refineo humanize "text" --model enhanced # Use enhanced model (default)
refineo humanize "text" --model standard # Use standard model
refineo humanize --file input.txt # Read from file
refineo humanize --file input.txt --output output.txt # Write to file
refineo humanize "text" --verbose # Show debug output
echo "text" | refineo humanize # Read from stdin
Requirements
- Pro or Ultra subscription - CLI/MCP access is a Pro+ feature
- Node.js 18+ (for Node CLI)
- Python 3.10+ (for Python CLI)
Authentication
The CLI uses device code flow for secure authentication:
- Run
refineo login - A browser opens to authorize the device
- Sign in and confirm the device code
- Credentials are stored securely in
~/.refineo/
MCP Integration
Refineo provides an MCP server for integration with Claude Desktop, Cursor, and other AI assistants.
Tools Available
| Tool | Description |
|---|---|
humanize_text |
Transform AI-generated text into natural human writing |
get_usage |
Check remaining quota for current billing period |
Authentication Options
Option 1: API Key (Recommended for MCP)
API keys are long-lived (7 days to 1 year) and don't require refresh. Create one at www.refineo.app/dashboard/api-keys.
Option 2: Bearer Token
Use the CLI to get a short-lived access token (15 minutes). Suitable for quick testing.
Setup for Claude Code
Run this command (replace sk_your_api_key with your actual key):
claude mcp add-json refineo '{"type":"http","url":"https://www.refineo.app/mcp/mcp","headers":{"X-API-Key":"sk_your_api_key"}}'
Setup for Claude Desktop (Native OAuth - Recommended)
- Open Claude Desktop → Settings → Connectors
- Click "Add custom connector"
- Enter URL:
https://www.refineo.app/mcp/mcp - Click Add → Sign in with your Refineo account
No API key needed - uses OAuth authentication.
Setup for Claude Desktop / Cursor (API Key)
Alternatively, use an API key with the config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"refineo": {
"command": "npx",
"args": [
"mcp-remote",
"https://www.refineo.app/mcp/mcp",
"--header",
"X-API-Key:sk_your_api_key_here"
]
}
}
}
Requires Node.js. Uses mcp-remote as a proxy.
Token Refresh
- API Keys: No refresh needed until expiry (7d-1y). Create new keys at dashboard/api-keys.
- Bearer Tokens: Expire after 15 minutes. Run
refineo loginto refresh.
Development
Node CLI
cd node
npm install
npm run build
npm start login
Python CLI
cd python
pip install -e ".[dev]"
refineo login
Links
License
MIT
Metadata
Release files for refineo-cli 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| refineo_cli-0.1.5.tar.gz | 8.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| refineo_cli-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.5 kB
Release files / refineo_cli-0.1.5.tar.gz
| Download URL | refineo_cli-0.1.5.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
725de5c097152d52773e7d02002dfc487d5f3ea0a72175dd8f91df26138c6be8
|
|
BLAKE2b-256 checksum How to use checksums |
a7ac5981cc76c5c84c7196780ab0285f4c88247ee9c09571c4a61882a0c145e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 23, 2026.
Transparency logRelease files / refineo_cli-0.1.5-py3-none-any.whl
| Download URL | refineo_cli-0.1.5-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
67390bdea5c495c752e1a5dc8991eb2328896eac72ad203360c4a0ace224f052
|
|
BLAKE2b-256 checksum How to use checksums |
e1488fae591fe6fda1b26da3e604ae6af7296a9a934de2323a41e81897fce2af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 23, 2026.
Transparency log