Getting Started MCP
Provides tools for interacting with GitHub's hosted MCP server, specifically to list open pull requests on behalf of the user, with access managed via short-lived tokens from Keycard.
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.
Getting Started MCP
MCP server that reads GitHub and Linear on your behalf using short-lived tokens from Keycard for each call.
Run it locally, connect Claude Code, and reads will appear in the Keycard console under your name.
What the MCP tools show you
whoami answers as you, reading claims from your Keycard zone. At startup the server authenticates as itself with the credential in .env and reads the claims of the token Keycard issues it. That issuance appears in the Keycard console with the application as the subject, rather than you.
list_pull_requests returns your open pull requests. The server asks Keycard for a token scoped to you, spends it on GitHub's hosted MCP server, and discards it. This call appears in the Keycard console with you as the subject, rather than the application.
list_tickets returns your assigned Linear tickets, newest activity first. It uses a token scoped to you on Linear's hosted MCP server, just like the GitHub tool.
Related MCP server: GitHub MCP Connector
Prerequisites
You need Python 3.12 or later, uv, and a Keycard account.
Quickstart
Clone the project and move into it.
git clone https://github.com/keycardai/getting-started-mcp local-tools cd local-toolsInstall the Keycard CLI and enroll the project.
brew install keycardai/tap/keycard keycard new mcpkeycard new mcpcreates thelocal-toolsapplication in your zone, mints a credential for local development, and writes.env.Install dependencies and start the server.
make install make devThe server listens on
http://localhost:8181/mcp. Open Activity in the Keycard console and you'll see the startupwhoamicall attributed tolocal-tools.Add GitHub as a dependency of the application.
In the console: go to Dependencies, choose Add Dependency, then Add Resource, and pick GitHub MCP. Keycard walks you through connecting GitHub and then holds tokens for you.
To use
list_tickets, add Linear as a dependency the same way.Connect Claude Code.
claude mcp add --transport http --scope local local-tools http://localhost:8181/mcp claudeAsk Claude Code to list open pull requests. You sign in, consent to using GitHub, and the read comes back. Activity records the grant and the read with you as the subject.
How the authorization works
Two exchanges, and neither one puts a GitHub credential in this repository.
At startup the server authenticates to your Keycard zone with its own client ID and secret from .env, a plain OAuth client credentials grant, and reads the claims of the token it is issued. UserInfo is a user endpoint and does not accept an application as its subject, so the server shows its own token rather than calling UserInfo as itself.
To list pull requests the server hands the caller's token to Keycard using RFC 8693 token exchange to get back a token scoped to the request. Keycard decides whether to issue the token by ensuring the resource is a dependency of the application and that you consented to the use. The token comes back scoped to one resource and the server throws it away after the call.
So .env holds exactly one secret: the application's own. GitHub's credential lives in Keycard, and nothing in this project can read it.
Configuration
Every value comes from .env, which is written by keycard new mcp and loaded at startup.
Variable | What it does | Default |
| Your Keycard zone. Required. | none |
| The application's client ID, written by | none |
| Its secret, written by | none |
| The URL Keycard knows this server by. | Platform URL on Vercel/Fly, |
| Port the HTTP transport binds to. |
|
| Address it binds to. |
|
| Override the UserInfo endpoint. | derived from the zone URL |
| GitHub MCP Resource URL. |
|
| Linear MCP Resource URL. |
|
| Logging level. |
|
| Whether to announce the application at startup. | on locally, off on Vercel/Fly |
The server runs without KEYCARD_CLIENT_ID and KEYCARD_CLIENT_SECRET, so you can start it before you enroll. It logs a warning and skips the startup call.
On Vercel the server does not announce itself, which is why KEYCARD_STARTUP_IDENTITY_CHECK stays off there. The platform's OIDC token arrives per request (x-vercel-oidc-token) rather than with the process, so a startup hook has nothing to present. The deployed server uses that token to authenticate each tool call's token exchange, and the deployment shows up in Activity through the first real call.
Commands
Run make to see the list.
Command | What it does |
| Install dependencies. |
| Run the server with debug logging. |
| Run the server. |
| Type-check the source. |
| Test deployment configuration and credential selection. |
| Remove build and bytecode artifacts. |
| Push selected |
| Pull the Vercel environment into |
| List the environment set on the Vercel project. |
| Stage selected |
make env-push sends KEYCARD_ZONE_URL from .env to the linked Vercel project, and make fly-secrets stages it on Fly. Neither sends the local KEYCARD_CLIENT_ID or KEYCARD_CLIENT_SECRET: the deployed server authenticates with its host's workload identity, and its KEYCARD_CLIENT_ID is the workload client ID, which the console's Deploy step sets. Deploy after either runs; a running deployment keeps the values it started with.
Project layout
Path | Holds |
| Tool definitions, the startup hook, and the entry point. |
| GitHub MCP calls. Takes a token, knows nothing about Keycard. |
| Linear MCP calls. Takes a token, knows nothing about Keycard. |
| Identity reads: your UserInfo answer (the |
| Environment-derived settings. |
| The |
| The |
| Reads |
Deploying
Fly.io
Run these commands from this project's folder after enrolling it locally:
brew install flyctl
fly auth login
fly launch --no-deploy
fly ips allocate-v4 --shared
fly ips allocate-v6Use the included fly.toml when prompted. fly launch writes the app name into it; choose your organization in its settings. Skip an IP allocation if fly ips list already shows that address type.
In the Console guide's Deploy step, choose Fly and submit the organization slug, app name, Machine name (local-tools), and deployed URL (https://<app-name>.fly.dev). For a personal organization, use your account slug from fly.io/dashboard/<slug>, not the personal alias shown by fly orgs list. Keycard adds a Fly OIDC Provider, a Workload Identity credential scoped to that Machine, and the deployed /mcp Resource to your enrolled Application, then shows the workload client ID.
The console then gives you one command with that ID filled in. It stages KEYCARD_ZONE_URL from .env and the workload client ID as KEYCARD_CLIENT_ID, then starts the Machine:
make fly-secrets
fly secrets set --stage KEYCARD_CLIENT_ID=<workload-client-id>
fly machine run . --name local-tools --port 443:8181/tcp:tls:http --port 80:8181/tcp:http --restart alwaysIf the Machine already exists, the console's command runs fly machine update <machine-id> --yes instead of fly machine run, so it restarts with the new secrets.
The named Machine serves HTTP continuously, not on a schedule. Don't use fly deploy: it creates Machines with generated names instead of the identity you registered.
The server obtains fresh Fly identity tokens from the SDK's FlyTokenSource over /.fly/api and names its credential with KEYCARD_CLIENT_ID. The local client ID and secret stay in .env. MCP_SERVER_URL defaults to https://<app-name>.fly.dev/mcp; for a custom domain, set that variable on Fly and use the same URL in the form. The startup identity check is off on Fly, so the Machine's first tool call is the proof of the deployed identity.
Add the deployed /mcp URL to your coding agent, then call a tool. The exchange appears under Activity with your delegated identity and the server's Fly workload credential. The Fly walkthrough covers these steps in detail.
Vercel
We're still building the Vercel path, and the production credential handling remains unfinished. Link the project with vercel link, then register it before deploying: give the console your Vercel team slug and project name. Keycard creates a provider for your team, registers the endpoint at https://<project>.vercel.app/mcp, and issues a workload identity credential keyed to the project.
The console then gives you one command with the workload client ID filled in. It pushes KEYCARD_ZONE_URL from .env, sets the workload client ID as KEYCARD_CLIENT_ID, then deploys once:
make env-push
printf '%s' <workload-client-id> | vercel env add KEYCARD_CLIENT_ID production --force
vercel deploy --prodThen check the project's production domain: the Aliased: line in the deploy output, or the project's Domains page in Vercel. Don't use the Production: line, which is a unique URL for that one deployment. If the production domain isn't <project>.vercel.app (Vercel suffixes a hostname that's already taken), edit the deployment in the console and enter https://<domain>/mcp. The server takes its URL from that domain (VERCEL_PROJECT_PRODUCTION_URL), so the correction needs no new deploy.
The deployed server holds no secret at all. Vercel mints a short-lived OIDC token for every function invocation, Keycard trusts your team's issuer, and the exchange happens against that. The workload client ID only names which credential to check the token against. The client ID and secret in .env stay local.
The deployed server does not announce an identity of its own. Each tool call authenticates its token exchange with the workload identity, so the deployment shows up on the Activity feed through the first real call rather than through a separate self-issued announcement.
Troubleshooting
If startup fails with KEYCARD_ZONE_URL is not set, you haven't run keycard new mcp yet.
If the log says no application credential was found, you haven't run keycard new mcp yet. The server still serves; only the startup identity call is skipped.
If a deployed tool call fails with invalid_client: No token application credential configured for provider '…' and subject '…', the deployment isn't sending its workload client ID. Set KEYCARD_CLIENT_ID on the host to the workload client ID Keycard showed when you registered the deployment, then redeploy or restart.
If a GitHub tool returns a token exchange error, GitHub isn't a dependency of the application yet, or you haven't consented to this agent using it. Both are fixed in the console under Dependencies.
If your agent can't connect, check that MCP_SERVER_URL matches the URL you gave it, including the /mcp path. Keycard pins the token audience to that value, so a mismatch shows up as a rejected token.
License
Apache-2.0 — see LICENSE and, for the copyright notice, NOTICE. The Keycard name and logo are trademarks; TRADEMARKS.md states how they may be used.
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
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Operate GitHub from your AI assistant: repos, PRs, issues, Actions. Previews and read-only mode.
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Access the GitHub API, enabling file operations, repository management, search functionality, and…
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceConnects Claude to GitHub Pull Requests to fetch and filter code diffs for AI-assisted reviews. It enables listing open PRs and analyzing changes while automatically excluding binary and asset files to focus on relevant code.22MIT
- FlicenseNot gradedqualityDmaintenanceEnables browsing GitHub profile, repositories, issues, and pull requests directly in Claude conversation through OAuth authentication.-
- FlicenseAqualityDmaintenanceConnects Claude to GitHub, enabling listing repositories, browsing open pull requests, and inspecting PR diffs for code review.4-
- AlicenseNot gradedqualityDmaintenanceConnects Claude to GitHub repositories for querying repos, reviewing PRs, managing issues, searching code, and automating workflows.MIT