mcp-template-base
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.
mcp-template-base
A starting point for read-only MCP servers that run on Railway and connect to Claude. It includes:
Sign-in: Claude connects with OAuth. Each connection needs your
SETUP_SECRET, so finding the URL isn't enough to get in.One example tool and an example API client to replace with your service.
Checks on every pull request: lint with security rules, strict type checks, tests with a coverage minimum, Semgrep, a secret scan of the full history, and a dependency vulnerability audit.
CLAUDE.md: the standards any AI assistant working in the repo must follow.
Start a new server from this template
On GitHub: Use this template -> Create a new repository.
Follow "Adapting this template" in
CLAUDE.md, or ask Claude to.In the new repo's settings:
Rules -> Rulesets: add a rule for
mainthat requires pull requests and the status checksLint, types and tests,SemgrepandLeaked secrets.Advanced Security: turn on Dependabot alerts and Dependabot security updates.
For a public repo, also turn on CodeQL (default setup), secret scanning and push protection. They're free for public repos.
Related MCP server: Remote MCP Server
Deploy to Railway
Railway -> New Project -> Deploy from GitHub repo.
Add a volume with mount path
/data. Connections are stored there; the server won't start on Railway without one.Settings -> Networking -> Generate Domain.
Add the variables below, then check that
https://<your-domain>/healthreturnsok.
Variable | Value |
| 32+ random characters: |
| optional, shown on the connect page |
| only for a custom domain; Railway's domain is used otherwise |
| base URL of the API this server reads from |
| that API's key |
| optional, default 300; 0 turns caching off |
Until SETUP_SECRET and a domain are set, the server serves only /health.
Connect from Claude
Settings -> Connectors -> Add custom connector, URL
https://<your-domain>/mcp.Click Connect and enter your
SETUP_SECRETon the page that opens.
To disconnect everything, change SETUP_SECRET in Railway. Every existing connection ends on the next
deploy.
Security
Access tokens last an hour and refresh tokens rotate. Only hashes of tokens are stored.
Only Claude's callback address and Claude Code's localhost callback can receive access.
Requests addressed to any other host name are rejected.
No access log is written, because request paths carry one-time codes.
Anyone with access to your Railway project can read your variables and the volume.
Development
pip install -r requirements-dev.txt
ruff check . && ruff format --check . && mypy && python -m pytestRun locally with DATA_DIR=.data MCP_DOMAIN=localhost SETUP_SECRET=... python server.py. Claude can only
connect over HTTPS, so use Railway (or a tunnel) for end-to-end testing.
License
MIT
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
Hosted MCP server with managed OAuth for 15+ toolkits: Google Workspace, Fitbit, Oura, Kalshi, etc.
Unofficial remote MCP server for Less Annoying CRM: OAuth 2.1, read-only grants, 10 tools.
One OAuth connector for your team's remote MCP servers, with Tool Packs, guardrails and logs.
OAuth-protected, read-only-by-default MCP server for provenance-labeled QuillCaddie project memory.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceA Model Context Protocol server implementation that runs on Cloudflare Workers with OAuth login, allowing Claude and other AI models to access tools via the MCP standard.-
- FlicenseNot gradedqualityNot gradedmaintenanceA Cloudflare Workers-based implementation of Model Context Protocol (MCP) server that enables AI assistants like Claude to access external tools and capabilities through a standardized interface with OAuth authentication.-
- FlicenseNot gradedqualityCmaintenanceA Cloudflare Workers-based implementation of the Model Context Protocol (MCP) server that enables tool usage in Claude through OAuth authentication.-
- FlicenseNot gradedqualityDmaintenanceA Cloudflare Workers-based implementation of Model Context Protocol (MCP) server with OAuth login that allows tools like Claude to access external capabilities.-