@sgpdirectory/singapore-business-directory
v1.0.0
Published
Singapore business directory. Search companies, UENs, and SSIC industry classifications.
Downloads
104
Maintainers
Readme
@sgpdirectory/singapore-business-directory
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/singapore-business-directoryUsage with Claude Desktop
Add this to your mcp-servers.json configuration file:
{
"mcpServers": {
"sgp-directory": {
"command": "npx",
"args": ["-y", "@sgpdirectory/singapore-business-directory"]
}
}
}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.
You can also override the default remote server URL by setting the REMOTE_MCP_SERVER environment variable.
Example in Claude Desktop
{
"mcpServers": {
"sgp-directory": {
"command": "npx",
"args": ["-y", "@sgpdirectory/singapore-business-directory"],
"env": {
"SGP_DIRECTORY_API_KEY": "your-secret-token",
"REMOTE_MCP_SERVER": "https://mcp.sgpdirectory.com/mcp"
}
}
}
}Publishing to NPM
Login to NPM Run the login command and follow the prompts. You need to be a part of the
@sgpdirectoryorg.pnpm loginPublish the package Run the following inside your wrapper directory:
pnpm publish --access public
Local Testing
If you have cloned the repository locally, you can run:
pnpm install
pnpm startThis will launch the proxy and wait for standard stdio JSON-RPC messages.
