open-index/open-npm huggingface dataset:
npm package: @smcphub/site-management
Description: A MCP Server for web site management assistant by SMCPHUB
Author: SMCPHUB
Latest version: 0.0.12

# Welcome to @smcphub/site-management 👋
![Version](https://img.shields.io/badge/version-0.0.1-blue.svg?cacheSeconds=2592000)
[![Documentation](https://img.shields.io/badge/documentation-yes-brightgreen.svg)](https://www.smcphub.com/docs)

> A MCP Server by SMCPHUB

site-management is a site management assistant by SMCPhub.

SMCP hub is a platform that allows you to find the MCP servers which users published, or also publish your MCP Servers and get them listed and hosted on the website.

Then you can use the official MCP Client to connect to the MCP Servers you want, or use the official MCP Server to any clients that support MCP like Cursor, and maintain them in one place.

Here is the link to create a [API Key](https://www.smcphub.com/user/api-keys).

Here is the [documents](https://www.smcphub.com/docs).

### 🏠 [Homepage](https://smcphub.com)

## Install

Use the official MCP server to integrate this toolkit service:

```sh
npm i @smcphub/server
```
OR
```sh
yarn add @smcphub/server
```

## MCP Server configuration

```json
{
  "mcpServers": {
    "smcphub-server": {
      "command": "npx",
      "args": ["-y", "@smcphub/server@latest"],
      "env": {
        "SMCPHUB_API_KEY": "your api key",
      }
    }
  }
}
```

You can get your API Key from the [API Key Page](https://www.smcphub.com/user/api-key).

## Usage

Use official MCP Client to connect to the MCP Server.

```js

// import the SDK
import SmcphubClient from '@smcphub/client';

// Instantiate the client
const smcphubClient = new SmcphubClient({
    api_key: 'your-api-key'
});

// Connect the MCP Server
smcphubClient
.connect()
.then(tools => {
    console.log(tools);
})
.catch(err => {
  console.error(err);
});
    
// Call the tool
smcphubClient
.callTool('crawl_site_urls', {'domain': 'https://smcphub.com', 'depth': 3})
.then(content => {
    console.log(content);
})
.catch(err => {
  console.error(err);
});
```

## Tools

- `crawl_site_urls`: Crawl all the URLs by the specific web site and depth.
- `save_crawled_urls`: Save the specific URLs into the database.
- `query_crawled_urls`: Query all the crawled URLs by the specific web site URL in the database.
- `generate_site_map`: Generate the sitemap.xml by the specific web site URL.

## Author

👤 [**SMCPHUB**](https://smcphub.com)