Skip to main content

A scalable MCP server with clean architecture

Project description

Pier Cloud MCP Server

A scalable Model Context Protocol server with clean architecture.

Installation

# Install via pip
pip install piercloud-mcp

# Or via pipx (recommended for CLI tools)
pipx install piercloud-mcp

Quick Start

# Local mode (stdio)
piercloud-mcp

# Production mode (HTTP/SSE)
piercloud-mcp --sse --port 8000

Setup for Claude Desktop

  1. Install the package:
pipx install piercloud-mcp
  1. Add to Claude config:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json Linux: ~/.config/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "piercloud": {
      "command": "piercloud-mcp",
      "env": {
        "PIERCLOUD_CLIENT_ID": "your-client-id",
        "PIERCLOUD_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}
  1. Restart Claude Desktop

Production Deployment

Deploy as HTTP server:

# Run server
piercloud-mcp --sse --port 8000

# With custom host
piercloud-mcp --sse --host 0.0.0.0 --port 8000

Remote MCP Server (Claude, Cline, etc)

{
  "mcpServers": {
    "pier": {
      "url": "https://mcp.piercloud.io/mcp/sse"
    }
  }
}

Adding Tools

Create a new file in src/pier_mcp/tools/ and register:

from pydantic import BaseModel, Field

class MyToolInput(BaseModel):
    param: str = Field(description="Parameter description")

def register_my_tools(mcp):
    @mcp.tool("my_tool", "Tool description", MyToolInput)
    async def my_tool(args: MyToolInput) -> str:
        return f"Result: {args.param}"

Then import in main.py:

from pier_mcp.tools.my_tools import register_my_tools
register_my_tools(mcp)

Architecture

  • server.py - Core MCP server with tool registry
  • tools/ - Tool implementations (one file per domain)
  • main.py - Entry point and tool registration

Clean, minimal, scalable.

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

piercloud_mcp-0.1.1.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

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

piercloud_mcp-0.1.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file piercloud_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: piercloud_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.13.1 Darwin/25.2.0

File hashes

Hashes for piercloud_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a764d941e70d1ccc9934de623f5c71e04b048b9beecc73a51840795b48931fcc
MD5 98e9ddcf758248aa7adc4dce4f3b88d2
BLAKE2b-256 cbc56499a4ffb888a93e6ca91af202088f06f6b120e707952b82ddfe653ddf1a

See more details on using hashes here.

File details

Details for the file piercloud_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: piercloud_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.13.1 Darwin/25.2.0

File hashes

Hashes for piercloud_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 03df99eb8c4db971520d41eb8cc533a5e52c1e3254b513712d6a12c843f1a127
MD5 dbc0f20031f06bd1a37d13d05dff3c63
BLAKE2b-256 6ea7c3891ff05e9d18dd2ae705a4d569799d4e4a445c257d2e0c0bace299a22f

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