Skip to main content

A MCP server for PTT.

Project description

PTT MCP Server

This project is a PTT agent based on fastmcp and PyPtt, which can operate PTT through the MCP protocol.

Features

  • Login and logout
  • Get, post, reply, delete, and comment on posts
  • Send, get, and delete mail
  • Give money (P幣)
  • Get user, post, and board information
  • and more...

Installation

  1. Clone the project:
    git clone https://github.com/your-username/mcp_server.git
    
  2. Install dependencies:
    pip install -r requirements.txt
    
  3. Create a .env file and set the following environment variables:
    PTT_ID=your_ptt_id
    PTT_PW=your_ptt_password
    

Usage

Run the MCP server:

python src/mcp_server.py

Then you can connect to the server with your MCP client.

API

For detailed API documentation, please refer to the basic_api.py file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ptt_mcp_server-0.1.0.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ptt_mcp_server-0.1.0-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

Details for the file ptt_mcp_server-0.1.0.tar.gz.

File metadata

  • Download URL: ptt_mcp_server-0.1.0.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ptt_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 83b6e6f31218574405928206264ae4645c6c27ef2a607b5f81144c683ce7f5a4
MD5 5048a478a6408ef919b5f8e536717355
BLAKE2b-256 f4bb6d58716c5599fbc0c14ef2d7f431a0e7d1429c0616c1151dcb493d8f312d

See more details on using hashes here.

File details

Details for the file ptt_mcp_server-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ptt_mcp_server-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ptt_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f532d25fc3537f54e1a8cb32a46dd74d04a384d5824b9f575d4c726f1138b3e
MD5 fd91f9c2c59f6ccddb82d9d2e7256fce
BLAKE2b-256 5d67089ae356f46c2f3b3fcd57ef3af7082cd8312f8182bd1c79b013d7fbad1a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page