@sgpdirectory/mcp
Official local MCP (Model Context Protocol) package for the SGP Directory remote server. Singapore business directory: search companies, UENs, and SSIC industry classifications.
This package provides a standard stdio interface compatible with local MCP clients (like Claude Desktop and Cursor), proxying requests securely to the remote HTTP streamable SGP Directory server (https://mcp.sgpdirectory.com/mcp).
Usage with Cursor
Run the following package directly using npx:
When configuring Cursor, set the MCP "Type" to command and use:
npx -y @sgpdirectory/mcp
Usage with Claude Desktop
Add this to your mcp-servers.json configuration file:
{
"mcpServers": {
"sgp-directory": {
"command": "npx",
"args": ["-y", "@sgpdirectory/mcp"]
}
}
}
Authentication
If your proxy is behind an access token, you can pass it via SGP_DIRECTORY_API_KEY environment variable. The wrapper will automatically format it as an Authorization: Bearer <TOKEN> header and attach it to the mcp-remote connection.
Example in Claude Desktop
{
"mcpServers": {
"sgp-directory": {
"command": "npx",
"args": ["-y", "@sgpdirectory/mcp"],
"env": {
"SGP_DIRECTORY_API_KEY": "your-secret-token"
}
}
}
}
Publishing to NPM
-
Login to NPM
Run the login command and follow the prompts. You need to be a part of the @sgpdirectory org.
npm login
-
Publish the package
Run the following inside your wrapper directory:
npm publish --access public
Local Testing
If you have cloned the repository locally, you can run:
npm install
npm start
This will launch the proxy and wait for standard stdio JSON-RPC messages.