@sbroenne/mcp-server-excel 2.0.11
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 +21 -0
- package/README.md +17 -0
- package/bin/mcp-excel.js +13 -0
- package/lib/launcher.js +61 -0
- package/package.json +44 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Stefan Broenner
|
|
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,17 @@
|
|
|
1
|
+
# ExcelMcp MCP Server
|
|
2
|
+
|
|
3
|
+
Run the self-contained ExcelMcp server through npm:
|
|
4
|
+
|
|
5
|
+
```powershell
|
|
6
|
+
npx -y @sbroenne/mcp-server-excel
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
The package is Windows-only and requires Microsoft Excel 2016 or later. It does
|
|
10
|
+
not require the .NET SDK or a separately installed .NET runtime.
|
|
11
|
+
|
|
12
|
+
The Node.js entry point only launches the packaged .NET server. MCP tools and
|
|
13
|
+
Excel automation continue to run in the existing ExcelMcp implementation.
|
|
14
|
+
|
|
15
|
+
[Documentation](https://excelmcpserver.dev/installation-mcp-server/) |
|
|
16
|
+
[Source](https://github.com/sbroenne/mcp-server-excel) |
|
|
17
|
+
[Issues](https://github.com/sbroenne/mcp-server-excel/issues)
|
package/bin/mcp-excel.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { createLauncher } from '../lib/launcher.js';
|
|
4
|
+
|
|
5
|
+
const { main } = createLauncher({
|
|
6
|
+
packageName: '@sbroenne/mcp-server-excel',
|
|
7
|
+
commandName: 'excel-mcp'
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
const exitCode = main();
|
|
11
|
+
if (exitCode !== undefined) {
|
|
12
|
+
process.exitCode = exitCode;
|
|
13
|
+
}
|
package/lib/launcher.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';
|
|
2
|
+
|
|
3
|
+
import { foregroundChild } from 'foreground-child';
|
|
4
|
+
|
|
5
|
+
const require = createRequire(import.meta.url);
|
|
6
|
+
|
|
7
|
+
export function createLauncher({ packageName, commandName }) {
|
|
8
|
+
const runtimePackageName = `${packageName}-win32-x64`;
|
|
9
|
+
|
|
10
|
+
function resolveRuntime({
|
|
11
|
+
platform = process.platform,
|
|
12
|
+
arch = process.arch,
|
|
13
|
+
resolvePackage = name => require.resolve(name)
|
|
14
|
+
} = {}) {
|
|
15
|
+
if (platform !== 'win32') {
|
|
16
|
+
throw new Error('ExcelMcp is Windows only.');
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
if (arch !== 'x64' && arch !== 'arm64') {
|
|
20
|
+
throw new Error(`ExcelMcp requires Windows x64 or Arm64; this Node.js process is ${arch}.`);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
try {
|
|
24
|
+
return resolvePackage(runtimePackageName);
|
|
25
|
+
} catch (cause) {
|
|
26
|
+
throw new Error(
|
|
27
|
+
`Could not find ${runtimePackageName}. Reinstall ${packageName} ` +
|
|
28
|
+
'with optional dependencies enabled; do not use --omit=optional.',
|
|
29
|
+
{ cause }
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function launch({
|
|
35
|
+
args = process.argv.slice(2),
|
|
36
|
+
platform = process.platform,
|
|
37
|
+
arch = process.arch,
|
|
38
|
+
resolvePackage,
|
|
39
|
+
foreground = foregroundChild
|
|
40
|
+
} = {}) {
|
|
41
|
+
const executable = resolveRuntime({ platform, arch, resolvePackage });
|
|
42
|
+
return foreground(executable, args, {
|
|
43
|
+
shell: false,
|
|
44
|
+
stdio: 'inherit',
|
|
45
|
+
windowsHide: true
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function main({ launchProcess = launch, stderr = process.stderr } = {}) {
|
|
50
|
+
try {
|
|
51
|
+
launchProcess();
|
|
52
|
+
return undefined;
|
|
53
|
+
} catch (error) {
|
|
54
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
55
|
+
stderr.write(`${commandName}: ${message}\n`);
|
|
56
|
+
return 1;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return { resolveRuntime, launch, main };
|
|
61
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sbroenne/mcp-server-excel",
|
|
3
|
+
"version": "2.0.11",
|
|
4
|
+
"description": "Excel automation MCP server for Windows, distributed through npm.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"mcp-excel": "bin/mcp-excel.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"bin",
|
|
12
|
+
"lib"
|
|
13
|
+
],
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": ">=18"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/sbroenne/mcp-server-excel",
|
|
20
|
+
"directory": "npm-packages/mcp-server-excel"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://excelmcpserver.dev/",
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/sbroenne/mcp-server-excel/issues"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"mcp",
|
|
28
|
+
"model-context-protocol",
|
|
29
|
+
"excel",
|
|
30
|
+
"windows",
|
|
31
|
+
"automation"
|
|
32
|
+
],
|
|
33
|
+
"mcpName": "io.github.sbroenne/mcp-server-excel",
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"foreground-child": "^4.0.3"
|
|
36
|
+
},
|
|
37
|
+
"optionalDependencies": {
|
|
38
|
+
"@sbroenne/mcp-server-excel-win32-x64": "2.0.11"
|
|
39
|
+
},
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public",
|
|
42
|
+
"provenance": true
|
|
43
|
+
}
|
|
44
|
+
}
|