# codewalla-engineering/mcp-servers architecture

> Architecture diagram of the GitHub repository codewalla-engineering/mcp-servers, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-08-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/codewalla-engineering/mcp-servers
- Repository: https://github.com/codewalla-engineering/mcp-servers

## Overview

##### Project type and purpose
- This is a polyglot, multi-package “monorepo” containing *reference implementations* of MCP servers.
- Each sub-directory under `src/` is an independently deployable service (an MCP server) implemented in either TypeScript (using the Typescript MCP SDK) or Python (using the Python MCP SDK).
- The overarching goal: showcase how LLM-driven clients (e.g., Claude Desktop) can invoke these servers via MCP to access external tools and data sources.

##### File structure
- Top-level artifacts:
- `.github/` – CI workflows (TypeScript & Python)
- `package.json` & `package-lock.json` – root NPM config
- `tsconfig.json` – root TypeScript compiler settings
- Under `src/` each folder is a self-contained package:
- TypeScript servers: `aws-kb-retrieval-server`, `brave-search`, …, `slack` (each has its own `package.json`, `tsconfig.json`, `index.ts`)
- Python servers: `fetch`, `git`, `sentry`, `sqlite`, `time` (each has `pyproject.toml`, `src/.../server.py`, tests, and Python version lock files)
- CI pipelines (`.github/workflows/python.yml`, `typescript.yml`) build and publish packages to NPM and PyPI.

##### README for additional context
- Confirms each directory is a *reference server* exposing MCP endpoints.
- Details how to start each server locally (e.g., `npx -y @modelcontextprotocol/server-memory`, or `uvx mcp-server-git`).
- Describes the client-server relationship: user configures an MCP client to invoke these servers.

##### Main components & relationships
a. Monorepo (GitHub)
- Contains multiple independent packages under `src/`.
- CI/CD pipelines trigger on commits, run tests, and publish packages.
b. Package builds & registries
- TypeScript packages → NPM registry
- Python packages → PyPI registry
c. MCP Servers (microservices)
- Each server runs as a CLI/executable exposing an HTTP (MCP) endpoint.
- Internally they use the MCP SDK (TypeScript or Python) as the protocol layer.
- Each server implements one “tool” integration (e.g., AWS Bedrock, Brave Search, PostgreSQL, Filesystem, etc.).
d. External Tools & Data Sources
- AWS Knowledge Base, Brave Search API, Sentry API, local SQLite/PostgreSQL, file system, Git repos, Slack API, etc.
- Each MCP server has a “connector” module that makes outbound API/database calls.
e. MCP Client (e.g. Claude Desktop)
- Invokes servers via command line (`npx`, `uvx`)
- Sends LLM tool requests over the MCP protocol.
- Receives structured responses.

##### Architectural patterns & principles
- Microservice-style modularity: each `src/<server>` is its own deployable unit.
- Polyglot plugin architecture: mix of TypeScript and Python implementations coexisting in one repo.
- Protocol-driven design: all servers conform to MCP (a common interface layer) using shared SDKs.
- CI/CD as code: GitHub Actions build/test/publish to public registries.

- Clear, self-explanatory labels (e.g., “MCP Server: @modelcontextprotocol/server-git”)
- Repo & CI (grey)
- TypeScript servers (blue)
- Python servers (green)
- External services (orange)
- MCP Client (purple)

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Developer pushes code
    Dev["Developer"]:::external -->|push code| Repo["GitHub Repo (Monorepo)"]:::repo
    click Repo "https://github.com/codewalla-engineering/mcp-servers/blob/main//package.json"

    %% Monorepo config files
    Repo --> RootPkg["package.json"]:::repo
    Repo --> RootLock["package-lock.json"]:::repo
    Repo --> RootTSConfig["tsconfig.json"]:::repo
    click RootPkg "https://github.com/codewalla-engineering/mcp-servers/blob/main//package.json"
    click RootLock "https://github.com/codewalla-engineering/mcp-servers/blob/main//package-lock.json"
    click RootTSConfig "https://github.com/codewalla-engineering/mcp-servers/blob/main//tsconfig.json"

    %% CI/CD pipelines
    subgraph "CI/CD Pipelines" 
        TSFlow["Workflow: TypeScript"]:::ci
        PyFlow["Workflow: Python"]:::ci
    end
    Repo --> TSFlow
    Repo --> PyFlow
    click TSFlow "https://github.com/codewalla-engineering/mcp-servers/blob/main//.github/workflows/typescript.yml"
    click PyFlow "https://github.com/codewalla-engineering/mcp-servers/blob/main//.github/workflows/python.yml"

    %% Registries
    TSFlow -->|publish| NPM["NPM Registry"]:::external
    PyFlow -->|publish| PyPI["PyPI Registry"]:::external

    %% Runtime: MCP Client
    Client["MCP Client\n(e.g. Claude Desktop)"]:::client

    %% TypeScript Servers cluster
    subgraph "TypeScript Servers" 
        direction TB
        TS_AWS["AWS KB Retrieval Server"]:::ts
        TS_Brave["Brave Search Server"]:::ts
        TS_Ever["Everart Server"]:::ts
        TS_Every["Everything Server"]:::ts
        TS_FS["Filesystem Server"]:::ts
        TS_GDrive["Google Drive Server"]:::ts
        TS_GitHub["GitHub API Server"]:::ts
        TS_GitLab["GitLab API Server"]:::ts
        TS_Maps["Google Maps Server"]:::ts
        TS_Memory["In-Memory Server"]:::ts
        TS_Postgres["PostgreSQL Server"]:::ts
        TS_Puppeteer["Puppeteer Server"]:::ts
        TS_Seq["SequentialThinking Server"]:::ts
        TS_Slack["Slack API Server"]:::ts
    end

    click TS_AWS "https://github.com/codewalla-engineering/mcp-servers/tree/main//src/aws-kb-retrieval-server"
    click TS_Brave "https://github.com/codewalla-engineering/mcp-servers/tree/main//src/brave-search"
    click TS_Ever "https://github.com/codewalla-engineering/mcp-servers/tree/main//src/everart"
    click TS_Every "https://github.com/codewalla-engineering/mcp-servers/tree/main//src/everything"
    click TS_FS "https://github.com/codewalla-engineering/mcp-servers/tree/main//src/filesystem"
    click TS_GDrive "https://github.com/codewalla-engineering/mcp-servers/tree/main//src/gdrive"
    click TS_GitHub "https://github.com/codewalla-engineering/mcp-servers/tree/main//src/github"
    click TS_GitLab "https://github.com/codewalla-engineering/mcp-servers/tree/main//src/gitlab"
    click TS_Maps "https://github.com/codewalla-engineering/mcp-servers/tree/main//src/google-maps"
    click TS_Memory "https://github.com/codewalla-engineering/mcp-servers/tree/main//src/memory"
    click TS_Postgres "https://github.com/codewalla-engineering/mcp-servers/tree/main//src/postgres"
    click TS_Puppeteer "https://github.com/codewalla-engineering/mcp-servers/tree/main//src/puppeteer"
    click TS_Seq "https://github.com/codewalla-engineering/mcp-servers/tree/main//src/sequentialthinking"
    click TS_Slack "https://github.com/codewalla-engineering/mcp-servers/tree/main//src/slack"

    %% Python Servers cluster
    subgraph "Python Servers"
        direction TB
        Py_Fetch["Fetch Server"]:::py
        Py_Git["Git Server"]:::py
        Py_Sentry["Sentry Server"]:::py
        Py_SQLite["SQLite Server"]:::py
        Py_Time["Time Server"]:::py
    end

    click Py_Fetch "https://github.com/codewalla-engineering/mcp-servers/tree/main//src/fetch"
    click Py_Git "https://github.com/codewalla-engineering/mcp-servers/tree/main//src/git"
    click Py_Sentry "https://github.com/codewalla-engineering/mcp-servers/tree/main//src/sentry"
    click Py_SQLite "https://github.com/codewalla-engineering/mcp-servers/tree/main//src/sqlite"
    click Py_Time "https://github.com/codewalla-engineering/mcp-servers/tree/main//src/time"

    %% Client invoking servers
    Client -->|invoke via CLI| TS_AWS
    Client -->|invoke via CLI| TS_Brave
    Client -->|invoke via CLI| TS_Ever
    Client -->|invoke via CLI| TS_Every
    Client -->|invoke via CLI| TS_FS
    Client -->|invoke via CLI| TS_GDrive
    Client -->|invoke via CLI| TS_GitHub
    Client -->|invoke via CLI| TS_GitLab
    Client -->|invoke via CLI| TS_Maps
    Client -->|invoke via CLI| TS_Memory
    Client -->|invoke via CLI| TS_Postgres
    Client -->|invoke via CLI| TS_Puppeteer
    Client -->|invoke via CLI| TS_Seq
    Client -->|invoke via CLI| TS_Slack

    Client -->|invoke via CLI| Py_Fetch
    Client -->|invoke via CLI| Py_Git
    Client -->|invoke via CLI| Py_Sentry
    Client -->|invoke via CLI| Py_SQLite
    Client -->|invoke via CLI| Py_Time

    %% Servers calling external tools
    TS_AWS -->|"calls AWS KB"| AWSService["AWS Knowledge Base"]:::external
    TS_Brave -->|"calls Brave API"| BraveAPI["Brave Search API"]:::external
    TS_Ever -->|"renders art"| EverartAPI["Everart Service"]:::external
    TS_Every -->|"aggregates"| EverythingAPI["Web/SSE Endpoints"]:::external
    TS_FS -->|"access"| FileSystem["Local File System"]:::external
    TS_GDrive -->|"calls Google Drive"| GDriveAPI["Google Drive API"]:::external
    TS_GitHub -->|"calls GitHub"| GitHubAPI["GitHub API"]:::external
    TS_GitLab -->|"calls GitLab"| GitLabAPI["GitLab API"]:::external
    TS_Maps -->|"calls Maps"| MapsAPI["Google Maps API"]:::external
    TS_Memory -->|"stores/retrieves"| MemoryStore["In-Memory Store"]:::external
    TS_Postgres -->|"queries"| PostgresDB["PostgreSQL DB"]:::external
    TS_Puppeteer -->|"controls browser"| PuppeteerService["Puppeteer"]:::external
    TS_Seq -->|"sequential logic"| SeqService["Sequential Engine"]:::external
    TS_Slack -->|"calls Slack"| SlackAPI["Slack API"]:::external

    Py_Fetch -->|"calls HTTP"| HTTPAPI["External HTTP APIs"]:::external
    Py_Git -->|"manages repos"| GitRepos["Git Repositories"]:::external
    Py_Sentry -->|"calls Sentry"| SentryAPI["Sentry API"]:::external
    Py_SQLite -->|"queries"| SQLiteDB["SQLite DB"]:::external
    Py_Time -->|"provides time"| TimeService["System Clock"]:::external

    %% Responses back to client
    AWSService -->|response| TS_AWS -->|respond| Client
    BraveAPI -->|response| TS_Brave -->|respond| Client
    EverartAPI -->|response| TS_Ever -->|respond| Client
    EverythingAPI -->|stream| TS_Every -->|respond| Client
    FileSystem -->|data| TS_FS -->|respond| Client
    GDriveAPI -->|data| TS_GDrive -->|respond| Client
    GitHubAPI -->|data| TS_GitHub -->|respond| Client
    GitLabAPI -->|data| TS_GitLab -->|respond| Client
    MapsAPI -->|data| TS_Maps -->|respond| Client
    MemoryStore -->|data| TS_Memory -->|respond| Client
    PostgresDB -->|data| TS_Postgres -->|respond| Client
    PuppeteerService -->|data| TS_Puppeteer -->|respond| Client
    SeqService -->|data| TS_Seq -->|respond| Client
    SlackAPI -->|data| TS_Slack -->|respond| Client

    HTTPAPI -->|data| Py_Fetch -->|respond| Client
    GitRepos -->|data| Py_Git -->|respond| Client
    SentryAPI -->|data| Py_Sentry -->|respond| Client
    SQLiteDB -->|data| Py_SQLite -->|respond| Client
    TimeService -->|data| Py_Time -->|respond| Client

    %% Styles
    classDef repo fill:#cccccc,stroke:#444,stroke-width:1px;
    classDef ci fill:#bbbbbb,stroke:#444,stroke-width:1px;
    classDef ts fill:#add8e6,stroke:#333,stroke-width:1px;
    classDef py fill:#90ee90,stroke:#333,stroke-width:1px;
    classDef external fill:#ffa500,stroke:#333,stroke-width:1px;
    classDef client fill:#dda0dd,stroke:#333,stroke-width:1px;
```
