Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

MCP server that lists available GitHub Models and compares responses from multiple models for the same prompt.

README.md

MCP TypeScript GitHub Models Helper

TypeScript MCP server that integrates with GitHub Models to list available models and compare responses across models for the same prompt. This README includes full requirements, project description, build steps, and testing flow.

Project requirements

  • Node.js 18+
  • GitHub account with access to GitHub Models
  • GitHub Personal Access Token (PAT) with GitHub Models access
  • MCP Inspector (runs via npx)

Project description

This server exposes three MCP primitives:

  • Resource: models://available (lists available models)
  • Tool: compare_models (compares model responses to the same prompt)
  • Prompt: compare_models_prompt (builds a reusable comparison prompt)

Project structure

mcp-typescript-github-models-helper/
  src/
    githubModels.ts
    index.ts
  .env.template
  .gitignore
  package.json
  tsconfig.json

Step-by-step setup

1) Install dependencies

npm install

2) Create .env from the template

cp .env.template .env

3) Add your GitHub Models token

GITHUB_TOKEN=your_github_token_here

Optional: override the API base URL in .env:

GITHUB_MODELS_API_BASE=https://models.inference.ai.azure.com

Step-by-step implementation (what the code does)

1) src/githubModels.ts

  • Fetches available models with GET /models
  • Compares models with POST /chat/completions
  • Uses GITHUB_TOKEN from .env

2) src/index.ts

  • Creates the MCP server
  • Registers the models://available resource
  • Registers the compare_models tool
  • Registers the compare_models_prompt prompt
  • Connects to STDIO transport

Run (development)

npm run dev

Build and run (production-style)

npm run build
npm start

Step-by-step testing with MCP Inspector

1) Build the server

npm run build

2) Start the Inspector

npx @modelcontextprotocol/inspector node dist/index.js

3) Open the URL printed by the Inspector and click Connect

4) Test resources

  • Resources tab -> models://available

5) Test tools

  • Tools tab -> compare_models

6) Test prompts

  • Prompts tab -> compare_models_prompt

Claude Desktop configuration

Add this to your claude_desktop_config.json and update the paths:

{
  "mcpServers": {
    "GitHub Models Comparison": {
      "command": "node",
      "args": [
        "/absolute/path/to/mcp-typescript-github-models-helper/dist/index.js"
      ],
      "env": {
        "GITHUB_TOKEN": "your_github_personal_access_token"
      }
    }
  }
}

Note: This is not secure for production. Use proper secrets management and authentication when publishing MCP servers.

Troubleshooting

  • Cannot find name 'process': run npm install --save-dev @types/node.
  • 401/403 from GitHub Models: verify the PAT has GitHub Models access.
  • Inspector connection errors: rebuild and re-run npx @modelcontextprotocol/inspector node dist/index.js.

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Developer Tools servers.