Personal MCP Suite
Provides tools for interacting with the GitHub REST API, including repository and file operations, code search, branch/commit handling, issues, pull requests, releases, workflow runs, and controlled write actions.
Provides notes tools via a SiYuan Notes RPC client and optional SiYuan Share backend, enabling note search, document reading and outlines, share listing/tree access, and personal knowledge operations.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
β¨ Why This Exists
Connecting personal tools to cloud AI clients (such as Gemini Web & iOS Custom Apps) often runs into three practical bottlenecks:
OAuth refresh drops on mobile & session expiry: Stateful HTTP sessions and consumer OAuth connectors frequently lose sessions after idle periods or service restarts.
Router isolation & tool bloat: Exposing 30β40+ tools across multiple connectors bloats context schemas and lowers selection accuracy, while splitting closely related knowledge/web tools prevents fallback scraping inside the same conversation.
Unbounded page dumps & unsafe write delegation: Raw web scrapes or large files blow up context windows, while hiding mutating tools behind a generic proxy strips
destructiveHint=Trueconfirmation prompts.
This repository solves those with two isolated, stateless FastMCP servers behind capability URLs and reverse-proxy log redaction.
Related MCP server: loci-mcp
ποΈ Architecture
Gemini (Web / iOS) or any Streamable HTTP MCP Client
β
HTTPS POST (Stateless JSON-RPC 2.0)
βΌ
Reverse Proxy (Nginx / Caddy + TLS)
βββ /<SECRET_PATH_NOTES>/mcp βββΊ 127.0.0.1:8101/mcp (access_log off)
βββ /<SECRET_PATH_GITHUB>/mcp βββΊ 127.0.0.1:8102/mcp (access_log off)
β
βββββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββ
βΌ βΌ
βββββββββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββββββ
β Server 1: Personal Notes Web (:8101) β β Server 2: GitHub Personal (:8102) β
β systemd: mcp-notes-web.service β β systemd: mcp-github.service β
β β β β
β β’ 16 backend tools -> 7 exposed β β β’ 23 backend tools -> 12 exposed β
β β’ SiYuan Notes RPC client (5 tools) β β β’ Shared httpx -> GitHub REST API β
β β’ Firecrawl v2 wrapper (11 tools) β β β’ Fine-Grained PAT + owner allowlist β
β β’ Local LRU+TTL cache + offset paging β β β’ ALL 6 write tools pinned directly β
β β’ BM25SearchTransform (Markdown) β β β’ BM25SearchTransform (Markdown) β
βββββββββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββββββ
β
βΌ (Localhost only, header stripped on public proxy)
βββββββββββββββββββββββββββββββββββββββββ
β Optional: SiYuan Share Backend (:8081)β
βββββββββββββββββββββββββββββββββββββββββTool Inventory & Exposure Policy
Server | Port | Exposed ( | Backend Total | Pinned Tools ( | BM25 Hidden Tools ( |
Personal Notes Web ( |
| 7 | 16 |
|
|
GitHub Personal ( |
| 12 | 23 | 4 Read: | 13 Read / Download: |
π‘οΈ Key Engineering Safeguards
Stateless Streamable HTTP (
stateless_http=True): Every JSON-RPC call is self-contained with zero in-memory session affinity, preventing404 Session terminatederrors across mobile reconnects orsystemdrestarts.Write Safety Preserved: All 6 GitHub mutating tools are pinned in
always_visiblewithdestructiveHint=True(never hidden behindcall_tool) and enforced server-side byGITHUB_ALLOWED_WRITE_OWNERS(fail-closed if unconfigured).Zero-Credit Local Cache Pagination:
web_scrapeandweb_scrape_pdfcache full extracted Markdown in an LRU + TTL memory store (WEB_CACHE_TTL_SECONDS=1800). Follow-upoffsetreads andfind_keywordjumps consume 0 extra Firecrawl credits, while each read is capped atMAX_SINGLE_READ_CHARS(default32000).Soft Guardrails Without Dead-Ends:
web_crawl,web_batch_scrape, andweb_extract_structuredpause and returnneeds_confirmation=Trueabove configurable thresholds unlessconfirm_large=Trueis passed.firecrawl_searchis intentionally omitted.Privacy & Log Redaction: Capability URLs use 64-hex random paths paired with
access_log off(Nginx) /log_skip(Caddy) andproxy_buffering off.
π Quick Start (Debian / Ubuntu)
1. One-Command Install & Update
curl -fsSL https://raw.githubusercontent.com/Chen017/personal-mcp/main/deploy/deploy.sh | bashThe idempotent script installs uv, syncs Python dependencies into /opt/personal-mcp, creates .env (chmod 600) with generated random secrets on first run, installs and starts mcp-notes-web.service and mcp-github.service, verifies HTTP 200 on 127.0.0.1:8101/mcp and 127.0.0.1:8102/mcp, and prints ready-to-use Nginx/Caddy snippets. Re-run bash /opt/personal-mcp/deploy/deploy.sh anytime to pull updates without overwriting .env.
2. Configure Secrets & Reverse Proxy
Edit
/opt/personal-mcp/.env(see .env.example):Set
GITHUB_PAT,GITHUB_DEFAULT_OWNER, andGITHUB_ALLOWED_WRITE_OWNERS.Set
FIRECRAWL_API_KEY.Optionally set
NOTES_RPC_URL,NOTES_INTERNAL_TOKEN,NOTES_SITE_DOMAIN, andBLOG_SITE_DOMAINif integrating a SiYuan Share instance.
Restart services:
sudo systemctl restart mcp-notes-web mcp-githubConfigure HTTPS reverse proxy using deploy/nginx/mcp.example.com.conf or deploy/caddy/Caddyfile.example.
Follow the step-by-step client guide in docs/GEMINI_SETUP.md to register both Custom Apps, sync schemas in Developer Mode, and apply the Saved Info routing cards.
π§ͺ Local Development & CI
uv sync
uv run ruff check .
uv run ruff format --check .
uv run pytest -vGitHub Actions (ci.yml) runs Ruff lint/format checks, Python bytecode compilation, shell syntax validation (bash -n deploy/deploy.sh), hygiene/privacy guards, and the full pytest suite across Python 3.11 and 3.12. See docs/MAINTENANCE.md for architecture details and troubleshooting.
π License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Web search and page reading for AI agents, including JSON APIs, RSS feeds and YouTube.
GitHub, npm, PyPI, Stack Overflow, arXiv and OpenAlex paper search as agent tools.
Web search, URL content extraction to Markdown, site mapping, and recursive web crawler.
Web search and page reading for AI agents: search, fetch, scrape, map and crawl, with sources.
Related MCP Servers
- AlicenseAqualityNot gradedmaintenanceEnables web searching via SearXNG, page content extraction with Crawl4AI, and image analysis using vision language models. It provides AI agents with tools for information synthesis and web-based data retrieval through OpenAI-compatible LLM endpoints.3Apache 2.0
- FlicenseNot gradedqualityAmaintenanceEnables AI hosts such as Claude Desktop, Cursor, and Cline to search, ask questions of, and receive cited answers from a local hybrid vector-plus-BM25 index built over scattered notes, project docs, PDFs, and chat logs. Exposes 8 tools with resources and prompts so agents can retrieve section-level citations from a personal knowledge base without leaving their own interface.-
- AlicenseNot gradedqualityNot gradedmaintenanceEnables clients to read web pages and PDFs as markdown, capture screenshots, search the web and academic sources, rerank/deduplicate content, and extract PDF elements. Supports API-key access, tool filtering, and response token limits.Apache 2.0
- FlicenseNot gradedqualityAmaintenanceEnables AI agents to run web searches across SearXNG and/or You.com in parallel and to crawl single pages or whole sites into clean, deduplicated Markdown or JSON, including behind logins.-