@index9/mcp 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Index9
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,155 @@
1
+ # @index9/mcp
2
+
3
+ [![npm version](https://badge.fury.io/js/%40index9%2Fmcp.svg)](https://badge.fury.io/js/%40index9%2Fmcp)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
+
6
+ Give your AI assistant up-to-date model knowledge. 1000+ models with real-time pricing, context windows, and capabilities. Latest data, instant responses, zero cost.
7
+
8
+ ## ❌ Without Index9 MCP
9
+
10
+ LLMs rely on outdated training data about AI models:
11
+
12
+ - ❌ "Use GPT-4 for complex reasoning" (missing GPT-5.1, Claude Opus 4.5, and latest models)
13
+ - ❌ "This fits in GPT-3.5's 4K context" (current models have 128K-2M+ context windows)
14
+ - ❌ Generic advice without real pricing or capability comparisons
15
+ - ❌ No awareness of cutting-edge models released this month
16
+
17
+ ## ✅ With Index9 MCP
18
+
19
+ Your AI assistant has real-time access to the latest models and provides specific, data-driven recommendations:
20
+
21
+ - ✅ "Use **GPT-5.1** - 400K context, $1.25/million input, latest frontier-grade reasoning with adaptive computation"
22
+ - ✅ "For massive documents, try **Grok 4.1 Fast** with 2M context at $0.2/million input tokens"
23
+ - ✅ "Vision + reasoning needed? Use **Claude Opus 4.5** at $5/million - multimodal with 200K context"
24
+ - ✅ "Budget option: **Arcee Trinity Mini** at $0.04/million for text-only tasks"
25
+ - ✅ Compare the latest models side-by-side with current pricing, test live performance, and get cutting-edge recommendations
26
+
27
+ > *🤖 This section was written using Index9 MCP data - the AI assistant knew about Arcee Trinity Mini before it was cool!*
28
+
29
+ ## Quick Start
30
+
31
+ ### Cursor
32
+
33
+ Open Cursor Settings → MCP → Add new global MCP server
34
+
35
+ ```json
36
+ {
37
+ "mcpServers": {
38
+ "index9": {
39
+ "command": "npx",
40
+ "args": ["-y", "@index9/mcp"]
41
+ }
42
+ }
43
+ }
44
+ ```
45
+
46
+ ### VS Code
47
+
48
+ Open VS Code Settings → MCP Servers → Add Server
49
+
50
+ ```json
51
+ "mcp": {
52
+ "servers": {
53
+ "index9": {
54
+ "type": "stdio",
55
+ "command": "npx",
56
+ "args": ["-y", "@index9/mcp"]
57
+ }
58
+ }
59
+ }
60
+ ```
61
+
62
+ ### Other MCP Clients
63
+
64
+ #### Claude Desktop
65
+
66
+ Edit `~/Library/Application Support/Claude/claude_desktop_config.json`
67
+
68
+ ```json
69
+ {
70
+ "mcpServers": {
71
+ "index9": {
72
+ "command": "npx",
73
+ "args": ["-y", "@index9/mcp"]
74
+ }
75
+ }
76
+ }
77
+ ```
78
+
79
+ #### Claude Code
80
+
81
+ Run in terminal:
82
+
83
+ ```bash
84
+ claude mcp add index9 -- npx -y @index9/mcp
85
+ ```
86
+
87
+ #### Windsurf
88
+
89
+ Add to Windsurf MCP config file
90
+
91
+ ```json
92
+ {
93
+ "mcpServers": {
94
+ "index9": {
95
+ "command": "npx",
96
+ "args": ["-y", "@index9/mcp"]
97
+ }
98
+ }
99
+ }
100
+ ```
101
+
102
+ #### Cline
103
+
104
+ Open Cline → MCP Servers → Edit Configuration
105
+
106
+ ```json
107
+ {
108
+ "mcpServers": {
109
+ "index9": {
110
+ "command": "npx",
111
+ "args": ["-y", "@index9/mcp"]
112
+ }
113
+ }
114
+ }
115
+ ```
116
+
117
+ ## Configuration
118
+
119
+ ### Testing Models (Optional)
120
+
121
+ To use the `test_model` tool, add your OpenRouter API key:
122
+
123
+ ```json
124
+ {
125
+ "mcpServers": {
126
+ "index9": {
127
+ "command": "npx",
128
+ "args": ["@index9/mcp"],
129
+ "env": {
130
+ "OPEN_ROUTER_API_KEY": "your-key-here"
131
+ }
132
+ }
133
+ }
134
+ }
135
+ ```
136
+
137
+ Get your API key from [openrouter.ai/keys](https://openrouter.ai/keys).
138
+
139
+ ## Available Tools
140
+
141
+ - **`list_models`** - List models with optional filters (provider, context, modality, pricing, capabilities)
142
+ - **`search_models`** - Semantic search across models using natural language
143
+ - **`get_model`** - Get complete model details and specifications
144
+ - **`compare_models`** - Compare 2-10 models side-by-side
145
+ - **`recommend_model`** - Get AI-powered model recommendations for use cases
146
+ - **`test_model`** - Run live tests against models via OpenRouter API (requires API key)
147
+
148
+ ## License
149
+
150
+ MIT © [Index9](https://index9.dev)
151
+
152
+ ## Related
153
+
154
+ - [Index9](https://index9.dev) - AI model registry and testing platform
155
+ - [Model Context Protocol](https://modelcontextprotocol.io/) - The protocol this server implements
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export * from "./types/index.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAMA,cAAc,kBAAkB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env node
2
+ import { logger } from "./logger.js";
3
+ import { startMCPServer } from "./mcp.js";
4
+ // Export types for library usage
5
+ export * from "./types/index.js";
6
+ async function main() {
7
+ logger.info("Starting index9 MCP server");
8
+ await startMCPServer();
9
+ }
10
+ process.on("unhandledRejection", (error) => {
11
+ logger.error({
12
+ error: error instanceof Error ? error.message : String(error),
13
+ stack: error instanceof Error ? error.stack : undefined,
14
+ }, "Unhandled rejection");
15
+ process.exit(1);
16
+ });
17
+ process.on("uncaughtException", (error) => {
18
+ logger.error({
19
+ error: error instanceof Error ? error.message : String(error),
20
+ stack: error instanceof Error ? error.stack : undefined,
21
+ }, "Uncaught exception");
22
+ process.exit(1);
23
+ });
24
+ main().catch((error) => {
25
+ logger.error({
26
+ error: error instanceof Error ? error.message : String(error),
27
+ stack: error instanceof Error ? error.stack : undefined,
28
+ }, "Failed to start");
29
+ process.exit(1);
30
+ });
package/package.json ADDED
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "@index9/mcp",
3
+ "version": "1.0.0",
4
+ "description": "Give your AI assistant up-to-date model knowledge. 1000+ models with real-time pricing, context windows, and capabilities. Latest data, instant responses, zero cost.",
5
+ "keywords": [
6
+ "mcp",
7
+ "model-context-protocol",
8
+ "ai",
9
+ "llm",
10
+ "models",
11
+ "pricing",
12
+ "capabilities",
13
+ "context-window",
14
+ "real-time",
15
+ "api",
16
+ "sdk",
17
+ "openrouter"
18
+ ],
19
+ "homepage": "https://index9.dev",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/index9-org/mcp.git"
23
+ },
24
+ "bugs": {
25
+ "url": "https://github.com/index9-org/mcp/issues"
26
+ },
27
+ "license": "MIT",
28
+ "author": "Index9 <hello@index9.dev>",
29
+ "type": "module",
30
+ "main": "dist/index.js",
31
+ "types": "dist/index.d.ts",
32
+ "files": [
33
+ "dist"
34
+ ],
35
+ "bin": {
36
+ "index9": "./dist/index.js"
37
+ },
38
+ "dependencies": {
39
+ "@modelcontextprotocol/sdk": "^1.24.2",
40
+ "axios": "^1.13.2",
41
+ "pino": "^10.1.0",
42
+ "zod": "^4.1.13"
43
+ },
44
+ "devDependencies": {
45
+ "@types/node": "^24.10.1",
46
+ "pino-pretty": "^13.1.3",
47
+ "tsx": "^4.21.0",
48
+ "typescript": "^5.9.3"
49
+ },
50
+ "publishConfig": {
51
+ "access": "public"
52
+ },
53
+ "scripts": {
54
+ "build": "tsc",
55
+ "typecheck": "tsc --noEmit",
56
+ "start": "node dist/index.js",
57
+ "dev": "tsx watch --env-file=.env src/index.ts",
58
+ "publish:beta": "pnpm publish --tag beta",
59
+ "publish:prod": "pnpm publish --tag latest"
60
+ }
61
+ }