Skip to main content
Glama
Pine Assistant MCP Server

Pine Assistant MCP Server

Official
by 19PINE-AI

Pine Assistant MCP

Pine AI is a personal assistant for real-world tasks. This repository provides the Pine Assistant plugin for MCP clients and the earlier local Python stdio server.

Pine Assistant plugin

Pine Assistant (pine) connects a supported client to Pine through a remote MCP server and opens browser-based OAuth authorization when the client connects. Bring Pine AI into your agent to handle real-world tasks and follow up on progress and results. The shared skill guides the agent through the available tools and any details or account actions a task needs.

Install and authorize

Ask your agent to set up Pine:

Read https://pine.im/features/mcp and help me install Pine.

Or follow the instructions for your client below.

Install Pine Assistant (pine) from the Pine AI (pine-ai) marketplace, then begin a new conversation. Connect and complete the Pine browser authorization when your client asks.

Codex

codex plugin marketplace add https://github.com/19PINE-AI/pine-mcp-server.git --ref main
codex plugin add pine@pine-ai

To update it:

codex plugin marketplace upgrade pine-ai
codex plugin add pine@pine-ai

Claude Code

claude plugin marketplace add https://github.com/19PINE-AI/pine-mcp-server.git
claude plugin install pine@pine-ai

To update it:

claude plugin marketplace update pine-ai
claude plugin update pine@pine-ai

Use Pine naturally after authorizing, for example:

Use Pine to contact a nearby bike repair shop and ask about tune-up availability.

Pine keeps working after you leave. Ask your agent for progress or results when you return. Complete payment, account connection, or phone verification in Pine when the task directs you there.

In Codex, use $pine to load the shared guidance. In Claude Code, use /pine:pine.

Connect from another MCP client

Add a Streamable HTTP MCP server with this configuration, then use the client's Connect or Authorize control to complete OAuth in a browser:

{
  "mcpServers": {
    "pine": {
      "type": "http",
      "url": "https://mcp.pine.im/mcp"
    }
  }
}

Cursor

Cursor supports the Pine Assistant plugin and a manual MCP connection.

For a local native plugin install, clone this repository, copy plugins/pine to ~/.cursor/plugins/local/pine, and reload Cursor:

git clone https://github.com/19PINE-AI/pine-mcp-server.git
mkdir -p ~/.cursor/plugins/local
cp -R pine-mcp-server/plugins/pine ~/.cursor/plugins/local/pine

Use Developer: Reload Window, then enable Pine in Customize and complete browser authorization. When updating, replace the existing local pine folder instead of copying a second pine folder inside it. Team administrators can also import this repository as a marketplace.

For a manual connection, add the Streamable HTTP configuration above in Cursor's MCP settings, then use its authorization control.

Muse

Follow Install Pine in Muse.

Related MCP server: knitbrain

Use Pine from your own agent with a Platform API key

A Pine Platform API partner can use the hosted Pine MCP server from its own agent, on behalf of each of its end users. It authenticates with its secret key and a Pine-Managed-User-Id header instead of browser OAuth, so it does not use the plugin. See Use Pine MCP from your own agent.

Legacy local stdio server

The published pine-mcp-server Python package is separate from the plugin distribution: pip and uvx do not install the client plugin. It runs a local stdio MCP server backed by the pine-assistant SDK.

Install it with pip:

pip install pine-mcp-server

Or run it without installing:

uvx pine-mcp-server

Configure a stdio MCP client with the executable and Pine credentials. For example:

{
  "mcpServers": {
    "pine-assistant": {
      "command": "uvx",
      "args": ["pine-mcp-server"],
      "env": {
        "PINE_ACCESS_TOKEN": "your-access-token",
        "PINE_USER_ID": "your-user-id"
      }
    }
  }
}

If installed with pip, use pine-mcp-server as command and omit args. Alternatively, authenticate with the pine_auth_request_code and pine_auth_verify_code tools. Do not put access tokens in plugin files.

Environment

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)

PINE_DEVICE_ID

No

Stable device identifier for subprocess clients; otherwise a new ID may be generated when ~/.pine/device_id is unwritable.

* Not required when authenticating at runtime with the auth tools.

Tools

Area

Tools

Authentication

pine_auth_request_code, pine_auth_verify_code

Sessions

pine_session_create, pine_session_list, pine_session_get, pine_session_delete, pine_session_url

Conversation

pine_get_history, pine_send_message, pine_send_form_response, pine_send_auth_confirmation, pine_send_location_response, pine_send_location_selection

Tasks

pine_task_start, pine_task_stop

Attachments

pine_upload_attachment, pine_delete_attachment

Social and scheduling

pine_social_share, pine_update_call_reminder

The local server follows a load-conversation model: create or select a session, send a message, and read history for subsequent questions and results. It does not stream real-time updates.

Releases

Plugin releases use immutable plugin-vX.Y.Z tags. The Python package uses vX.Y.Z tags and is published independently to PyPI. Keep all plugin manifest versions synchronized before creating a plugin tag. Plugin tags run validation without publishing to PyPI. Python tags must match the version in pyproject.toml before publication.

The installation commands track main. Merge and validate a release before tagging it, bump plugin versions when changing the package, and never move an existing release tag. To pin a plugin release in Codex, add the repository with --ref plugin-vX.Y.Z instead of --ref main. After updating a plugin, start a new client conversation (or reload the client) to load its changes.

Development

For plugin testing, clone this repository and edit plugins/pine/.mcp.json in that working copy to point at the endpoint under test. Do not commit a local endpoint or credentials. Use separate client configuration directories so the local marketplace does not collide with your normal Pine installation.

From the repository root, test Codex:

PINE_CODEX_TEST_CONFIG="$(mktemp -d)"
CODEX_HOME="$PINE_CODEX_TEST_CONFIG" codex plugin marketplace add .
CODEX_HOME="$PINE_CODEX_TEST_CONFIG" codex plugin add pine@pine-ai
CODEX_HOME="$PINE_CODEX_TEST_CONFIG" codex

Or Claude Code:

PINE_CLAUDE_TEST_CONFIG="$(mktemp -d)"
CLAUDE_CONFIG_DIR="$PINE_CLAUDE_TEST_CONFIG" claude plugin marketplace add .
CLAUDE_CONFIG_DIR="$PINE_CLAUDE_TEST_CONFIG" claude plugin install pine@pine-ai
CLAUDE_CONFIG_DIR="$PINE_CLAUDE_TEST_CONFIG" claude

Keep the same temporary directory while testing. Each isolated client may require its own client login and Pine authorization. Remove the temporary configuration after testing; do not copy credentials into the repository.

Validate the Claude package and marketplace with:

claude plugin validate plugins/pine --strict
claude plugin validate . --strict

CI also checks cross-client metadata and bundled paths. For the legacy Python server's development dependencies:

pip install -e ".[dev]"

License

MIT

Available Tools

19 tools
pine_auth_request_codeA

Step 1: Send a verification code to the user's Pine AI email.

After calling this, ask the user to check their email (including spam) and provide the code. Then call pine_auth_verify_code with the code and the returned request_token.

Inputs: email (required). Returns: Generic wrapper for non-object return types.

pine_auth_verify_codeA

Step 2: Verify the email code and activate Pine AI credentials.

Use the request_token from pine_auth_request_code and the code the user received. On success, all Pine tools become available.

Inputs: code (required), email (required), request_token (required). Returns: Generic wrapper for non-object return types.

pine_delete_attachmentA

Delete a previously uploaded attachment.

Args: attachment_id: The attachment ID from pine_upload_attachment.

Inputs: attachment_id (required). Returns: Generic wrapper for non-object return types.

pine_get_historyA

Poll Pine's conversation history — the core way to see replies (no streaming).

Call after sending a message or starting a task. Wait a few seconds between polls. Look for: [FORM], [BILLING], [PAYMENT], [TASK READY], [CREDITS NEEDED], [AUTH NEEDED], [THREE-WAY CALL], [TASK FINISHED], [ACTION NEEDED].

Args: session_id: The session to load history for. max_messages: Max messages to fetch (default 30). order: "asc" (oldest first) or "desc" (newest first). from_message_id: Fetch messages after this ID (for pagination).

Inputs: session_id (required), order, max_messages, from_message_id. Returns: Generic wrapper for non-object return types.

pine_send_auth_confirmationA

Submit an OTP/verification code for an [AUTH NEEDED] event.

ALWAYS ask the user for the code first — never guess or hallucinate OTPs, PINs, or security answers.

Args: session_id: The session requesting authentication. message_id: The auth request's message_id from pine_get_history. data: Verification data, e.g. {"code": "123456"}.

Inputs: data (required), message_id (required), session_id (required). Returns: Generic wrapper for non-object return types.

pine_send_form_responseA

Submit a form shown in pine_get_history as [FORM].

Fill fields you know; ask the user for unknowns (especially preferences or security info). Use exact option labels for select fields.

Args: session_id: The session containing the form. message_id: The form's message_id from pine_get_history output. form_data: {"field_name": "value"} pairs matching the form fields.

Inputs: form_data (required), message_id (required), session_id (required). Returns: Generic wrapper for non-object return types.

pine_send_location_responseA

Submit location coordinates for a [LOCATION NEEDED] event. Ask the user if unknown.

Args: session_id: The session requesting the location. message_id: The location request's message_id from pine_get_history. latitude: Latitude string (e.g. "37.7749"). longitude: Longitude string (e.g. "-122.4194").

Inputs: latitude (required), longitude (required), message_id (required), session_id (required). Returns: Generic wrapper for non-object return types.

pine_send_location_selectionC

Submit a location selection from options Pine provided.

Args: session_id: The session with the location selection. message_id: The location selection request's message_id. places: Selected place objects from Pine's provided options.

Inputs: places (required), message_id (required), session_id (required). Returns: Generic wrapper for non-object return types.

pine_send_messageA

Send a message to Pine AI — describe the task, answer questions, or provide info.

Also used to submit form answers as JSON ({"field_name": "value"}) when pine_send_form_response is not applicable. Use pine_get_history afterward to see Pine's response.

Args: session_id: The session to send the message to. content: Text message or JSON form data to send. attachments: Optional attachment metadata from pine_upload_attachment.

Inputs: content (required), session_id (required), attachments. Returns: Generic wrapper for non-object return types.

pine_session_createA

Create a new Pine AI session to start a customer service task.

Returns session_id and web URL. Next step: call pine_send_message with the user's request (e.g. "Negotiate my Comcast bill").

Inputs: no named parameters. Returns: Generic wrapper for non-object return types.

pine_session_deleteA

Delete a Pine AI session.

Args: session_id: The session to delete. force_delete: If True, force-delete even if the session has an active task.

Inputs: session_id (required), force_delete. Returns: Generic wrapper for non-object return types.

pine_session_getA

Get session details including state, title, and timestamps.

Inputs: session_id (required). Returns: Generic wrapper for non-object return types.

pine_session_listA

List Pine AI sessions with optional state filter.

Args: state: Filter by state (e.g. "init", "task_ready", "in_progress"). limit: Max sessions to return (default 30). offset: Pagination offset.

Inputs: limit, state, offset. Returns: Generic wrapper for non-object return types.

pine_session_urlB

Get the web URL for a session. Share with the user for progress tracking, payments, or credits.

Inputs: session_id (required). Returns: Generic wrapper for non-object return types.

pine_social_shareA

Share completed task results on social media to earn Pine credits.

Args: session_id: The completed session to share results from. platform: One of "x", "facebook", or "linkedin". shared_url: The URL of the social media post.

Inputs: platform (required), session_id (required), shared_url (required). Returns: Generic wrapper for non-object return types.

pine_task_startA

Start task execution after billing is confirmed.

Only call after: [BILLING] free task, [BILLING] payment received, or [PAYMENT] completed. Do NOT call if [TASK READY] says credits confirmed/auto-started — the task is already running.

Inputs: session_id (required). Returns: Generic wrapper for non-object return types.

pine_task_stopC

Stop a running Pine AI task.

Inputs: session_id (required). Returns: Generic wrapper for non-object return types.

pine_update_call_reminderB

Update a scheduled call reminder. Confirm timing with the user first.

Args: session_id: The session with the scheduled call. message_id: The call reminder's message_id. scheduled_time: ISO 8601 datetime for the call. enabled: True to enable, False to disable.

Inputs: enabled (required), message_id (required), session_id (required), scheduled_time (required). Returns: Generic wrapper for non-object return types.

pine_upload_attachmentA

Upload a file (bill, screenshot, document) for a Pine AI session.

Returns attachment metadata — pass it to pine_send_message via the attachments parameter to include the file in a message.

Args: file_path: Absolute path to the file to upload.

Inputs: file_path (required). Returns: Generic wrapper for non-object return types.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 19 tools

    Disambiguation5/5

    Each tool has a distinct purpose with clear boundaries. Authentication, session management, messaging, attachments, forms, location, tasks, and social sharing are all separated into specific tools, minimizing confusion.

    Naming Consistency4/5

    All tool names follow the 'pine_<descriptive_name>' pattern with underscores, but the order of verb and noun varies slightly (e.g., 'pine_auth_request_code' vs 'pine_session_create'). Still, the naming is consistent in style and readability.

    Tool Count5/5

    19 tools is well-scoped for a customer service automation assistant. Each tool covers a necessary function without redundancy or bloat, making the toolset manageable and focused.

    Completeness4/5

    The toolset covers the core lifecycle: session management, authentication, messaging, attachments, form responses, location handling, task control, and social sharing. Minor gaps exist such as no explicit tool for deleting call reminders or handling payments, but these can be worked around.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers