GitHub Models Helper
Integrates with GitHub Models to list available models and compare responses across models for the same prompt.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GitHub Models HelperCompare gpt-4o and llama-3.2 on 'Explain quantum computing'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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)
Related MCP server: Model Hub MCP
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.jsonStep-by-step setup
Install dependencies
npm installCreate
.envfrom the template
cp .env.template .envAdd your GitHub Models token
GITHUB_TOKEN=your_github_token_hereOptional: override the API base URL in .env:
GITHUB_MODELS_API_BASE=https://models.inference.ai.azure.comStep-by-step implementation (what the code does)
src/githubModels.tsFetches available models with
GET /modelsCompares models with
POST /chat/completionsUses
GITHUB_TOKENfrom.env
src/index.tsCreates the MCP server
Registers the
models://availableresourceRegisters the
compare_modelstoolRegisters the
compare_models_promptpromptConnects to STDIO transport
Run (development)
npm run devBuild and run (production-style)
npm run build
npm startStep-by-step testing with MCP Inspector
Build the server
npm run buildStart the Inspector
npx @modelcontextprotocol/inspector node dist/index.jsOpen the URL printed by the Inspector and click Connect
Test resources
Resources tab ->
models://available
Test tools
Tools tab ->
compare_models
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': 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.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bvm-arjun108/mcp-typescript-github-models-helper'
If you have feedback or need assistance with the MCP directory API, please join our Discord server