GitHub Models Helper
MCP server that lists available GitHub Models and compares responses from multiple models for the same prompt.
README
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
- Install dependencies
npm install
- Create
.envfrom the template
cp .env.template .env
- 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)
-
src/githubModels.ts- Fetches available models with
GET /models - Compares models with
POST /chat/completions - Uses
GITHUB_TOKENfrom.env
- Fetches available models with
-
src/index.ts- Creates the MCP server
- Registers the
models://availableresource - Registers the
compare_modelstool - Registers the
compare_models_promptprompt - 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
- Build the server
npm run build
- Start the Inspector
npx @modelcontextprotocol/inspector node dist/index.js
-
Open the URL printed by the Inspector and click Connect
-
Test resources
- Resources tab ->
models://available
- Resources tab ->
-
Test tools
- Tools tab ->
compare_models
- Tools tab ->
-
Test prompts
- Prompts tab ->
compare_models_prompt
- Prompts tab ->
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': runnpm 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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.