MCP HubMCP Hub
kazuph

mcp-pocket

by: kazuph

πŸ”— Model Context Protocol (MCP) Server for retrieving saved articles from Pocket API and loading them into Claude

8created 05/12/2024
Visit
API
Claude

πŸ“ŒOverview

Purpose: The MCP Pocket framework serves as a connector for Claude Desktop to retrieve saved articles from the Pocket API.

Overview: MCP Pocket allows users to seamlessly integrate their Pocket account with Claude Desktop, enabling the fetching and management of saved articles directly through the app.

Key Features:

  • Fetch Saved Articles: Users can easily retrieve saved articles from the Pocket API, receiving essential details such as title, URL, and excerpt for each article.

  • Mark Articles as Read: The framework enables users to mark specific articles as read (archived) in their Pocket account using item IDs, helping users manage their reading list more efficiently.


MCP Pocket

MCP Pocket is a connector that allows Claude Desktop (or any MCP client) to fetch your saved articles from the Pocket API.

Prerequisites

Quick Start

  1. Modify your Claude Desktop config located here:
    ~/Library/Application\ Support/Claude/claude_desktop_config.json

    You can easily find this through the Claude Desktop menu:

    1. Open Claude Desktop
    2. Click Claude on the Mac menu bar
    3. Click "Settings"
    4. Click "Developer"

    If you don't have this config, you can create an empty file at this location.

  2. Add the following to the config file, replacing the credentials with your own:

{
  "mcpServers": {
    "pocket": {
      "command": "npx",
      "args": ["-y", "@kazuph/mcp-pocket"],
      "env": {
        "POCKET_CONSUMER_KEY": "your-pocket-consumer-key",
        "POCKET_ACCESS_TOKEN": "your-pocket-access-token"
      }
    }
  }
}

Development Setup

  1. Clone this repository and install dependencies:
git clone https://github.com/kazuph/mcp-pocket.git
cd mcp-pocket
npm install
  1. For development, use this configuration instead:
{
  "mcpServers": {
    "pocket": {
      "command": "npx",
      "args": ["tsx", "/path/to/mcp-pocket/index.ts"],
      "env": {
        "POCKET_CONSUMER_KEY": "your-pocket-consumer-key",
        "POCKET_ACCESS_TOKEN": "your-pocket-access-token"
      }
    }
  }
}

Development Commands

# Build TypeScript
npm run build

# Watch mode for development
npm run watch

# Publish to npm
npm login
npm publish

Available Commands

The following MCP tools will be available in Claude Desktop:

  • pocket_get_articles: Fetch your saved articles from Pocket API. Returns title, URL, and excerpt for each article.
  • pocket_mark_as_read: Mark a specific article as read (archived) in your Pocket account using its item ID.

Getting Pocket API Credentials

For detailed instructions on obtaining your Pocket API credentials, please refer to Issue #2: https://github.com/kazuph/mcp-pocket/issues/2

Quick steps:

  1. Create a new app at Pocket Developer Portal
  2. Follow the authentication process to get your Consumer Key and Access Token

License

MIT