MCP server for Pine AI Assistant — manage sessions, send messages, and track tasks via any MCP client.
Project description
Pine Assistant MCP Server
A local MCP server that lets any LLM agent manage Pine AI tasks — negotiate bills, cancel subscriptions, resolve disputes, and make phone calls on your behalf.
Built on the pine-assistant Python SDK.
Installation
pip install pine-mcp-server
Or run directly with uvx (no install needed):
uvx pine-mcp-server
Quick Start
1. Get your Pine AI credentials
You need an access_token and user_id from Pine AI. Either:
- Sign up at 19pine.ai and retrieve your credentials, or
- Use the built-in auth tools (
pine_auth_request_code/pine_auth_verify_code) to authenticate via email.
2. Configure your MCP client
Claude Desktop — edit claude_desktop_config.json:
{
"mcpServers": {
"pine-assistant": {
"command": "uvx",
"args": ["pine-mcp-server"],
"env": {
"PINE_ACCESS_TOKEN": "your-access-token",
"PINE_USER_ID": "your-user-id"
}
}
}
}
Cursor — edit .cursor/mcp.json:
{
"mcpServers": {
"pine-assistant": {
"command": "uvx",
"args": ["pine-mcp-server"],
"env": {
"PINE_ACCESS_TOKEN": "your-access-token",
"PINE_USER_ID": "your-user-id"
}
}
}
}
If you prefer pip install, replace "command": "uvx" with "command": "pine-mcp-server" and remove the "args" field.
3. Use it
Ask your LLM agent something like:
"Use Pine AI to negotiate my Comcast internet bill. My account number is 12345."
The agent will create a session, send your request, and check back for updates.
How It Works
The server follows a "load conversation" model — like refreshing a browser page:
- Create a session —
pine_session_create - Send a message describing the task —
pine_send_message - Wait, then check what Pine replied —
pine_get_history - Start the task when ready —
pine_task_start - Check again for results —
pine_get_history
There is no real-time streaming. The agent periodically loads the conversation history to see updates, similar to refreshing the Pine web app.
Available Tools
Authentication
| Tool | Description |
|---|---|
pine_auth_request_code |
Request a verification code via email |
pine_auth_verify_code |
Verify the code and obtain credentials |
Sessions
| Tool | Description |
|---|---|
pine_session_create |
Create a new Pine session |
pine_session_list |
List sessions with optional filters |
pine_session_get |
Get details about a session |
pine_session_delete |
Delete a session |
pine_session_url |
Get the web URL to view a session |
Conversation
| Tool | Description |
|---|---|
pine_get_history |
Load conversation history (the core "refresh" tool) |
pine_send_message |
Send a text message to Pine |
pine_send_form_response |
Submit a form that Pine sent |
pine_send_auth_confirmation |
Submit an OTP/verification code |
pine_send_location_response |
Submit location coordinates |
pine_send_location_selection |
Submit a location selection |
Tasks
| Tool | Description |
|---|---|
pine_task_start |
Start task execution |
pine_task_stop |
Stop a running task |
Attachments
| Tool | Description |
|---|---|
pine_upload_attachment |
Upload a local file (bill, screenshot, etc.) |
pine_delete_attachment |
Delete an uploaded attachment |
Social & Scheduling
| Tool | Description |
|---|---|
pine_social_share |
Share results on social media to earn credits |
pine_update_call_reminder |
Update a scheduled call reminder |
Environment Variables
| Variable | Required | Description |
|---|---|---|
PINE_ACCESS_TOKEN |
Yes* | Pine AI access token |
PINE_USER_ID |
Yes* | Pine AI user ID |
PINE_BASE_URL |
No | Pine AI backend URL (default: https://www.19pine.ai) |
* Not required if you authenticate at runtime using the auth tools.
Development
pip install -e ".[dev]"
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 pine_mcp_server-0.1.0.tar.gz.
File metadata
- Download URL: pine_mcp_server-0.1.0.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a18f76cfb8cbe32a9b3aa83249d1f70f98e7db44f2b7388afeb17ed5f99597e4
|
|
| MD5 |
4a2843e6d28f99202ee31e50f3a11145
|
|
| BLAKE2b-256 |
dbacade671e9ee03e9043d70e1f2c1b624b1f6079ca6b9ec8e4605a857f80432
|
Provenance
The following attestation bundles were made for pine_mcp_server-0.1.0.tar.gz:
Publisher:
publish.yml on RunVid/pine-mcp-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pine_mcp_server-0.1.0.tar.gz -
Subject digest:
a18f76cfb8cbe32a9b3aa83249d1f70f98e7db44f2b7388afeb17ed5f99597e4 - Sigstore transparency entry: 956060923
- Sigstore integration time:
-
Permalink:
RunVid/pine-mcp-server@648975644822c98102503e2633852ee4ec463e1e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/RunVid
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@648975644822c98102503e2633852ee4ec463e1e -
Trigger Event:
push
-
Statement type:
File details
Details for the file pine_mcp_server-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pine_mcp_server-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6eebc2188879e2e89d44feb391d40e008028c7311de359bbbf80a18f9e559fc9
|
|
| MD5 |
4a76c520b87b46ebb1df45ce431339dc
|
|
| BLAKE2b-256 |
5c096cc7a3ea9ab837c69a592440127c4e84c86b1fe24a4971257cdb2d609372
|
Provenance
The following attestation bundles were made for pine_mcp_server-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on RunVid/pine-mcp-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pine_mcp_server-0.1.0-py3-none-any.whl -
Subject digest:
6eebc2188879e2e89d44feb391d40e008028c7311de359bbbf80a18f9e559fc9 - Sigstore transparency entry: 956060924
- Sigstore integration time:
-
Permalink:
RunVid/pine-mcp-server@648975644822c98102503e2633852ee4ec463e1e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/RunVid
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@648975644822c98102503e2633852ee4ec463e1e -
Trigger Event:
push
-
Statement type: