Skip to content
LowNewsLLM-specific

Hosting COM Servers with an MCP Server

Published
Record updated
View JSON

Summary

The author built mcp-com-server, an MCP server that wraps Windows COM and Office automation, exposing tools such as CreateObject, Get/Set Property, InvokeMethod, QueryInterface and ListAllHostedServers. Because any COM object can be instantiated, the server could open Shell.Application or FileSystemObject and perform dangerous operations. The author describes it as a learning prototype and notes that the server can automate Excel and Outlook through Claude.

Mitigation

The source states a basic mitigation: an Allow List for CLSIDs and ProgIDs, so the server only instantiates allow-listed COM objects, which the author says could be expanded to specific interfaces and methods. It also notes that Claude shows an Allow / Deny confirmation before invoking custom tools by default, which can be disabled or re-enabled per MCP tool in Claude Settings.