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.

Quick Start

# Setup
poetry install

# Local mode (stdio)
poetry run piercloud-mcp

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

Production Deployment

Deploy as HTTP server at https://mcp.piercloud.io:

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

MCP Protocol (Claude, Cline, etc)

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

REST API (ChatGPT, Gemini, any LLM)

# List tools
curl https://mcp.piercloud.io/api/tools

# Execute tool
curl -X POST https://mcp.piercloud.io/api/tools/echo \
  -H "Content-Type: application/json" \
  -d '{"message": "hello", "uppercase": true}'

# OpenAPI spec
curl https://mcp.piercloud.io/openapi.json

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.0.tar.gz (9.8 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.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: piercloud_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 9.8 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.0.tar.gz
Algorithm Hash digest
SHA256 7c6162468c118141a05c5f030bb54f9e2fc27bc2a929005691ab75ff2b80272f
MD5 d41c18d6fc40990c21b652b387be3439
BLAKE2b-256 901d95e317412a16ccf1a55c760bc2746d84587a28702f2242eb459369fa33b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: piercloud_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e9df924412d0450755fb248af5339ecf460a03f0cf3bea169a5bff70eb649eb
MD5 921c9276d7f291d70c692b4bb83e671f
BLAKE2b-256 697d1d1985dc68a9fa28311d80a703eabb2f8e48f089e0dbaddb8113013d56db

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