---
title: "Hosted MCP server for your API | DocStar"
description: "DocStar hosts an MCP server for every API you document. Agents search your docs, read the exact contract and make real calls, with OAuth sign-in. No server to build or keep in sync."
url: https://docstar.io/mcp
---

# Your API, as an MCP server.

_MCP server_

DocStar hosts an MCP server for every API you document. Agents search your docs, read the exact contract and make real calls. No server to build, host or keep in sync.

Copy prompt: paste this into your agent:

```text
Use DocStar to let my users use my app from their AI assistants.
Follow https://docstar.io/mcp/quickstart.md, document my app's user-facing APIs from my latest code, and set up MCP.
```

[What agents can do](https://docstar.io/#tools)

Works with: Claude Code, Claude Desktop, ChatGPT, Cursor, VS Code, any MCP client

connect your agent:

```text
$ claude mcp add --transport http acme https://mcp.acme.com

✓ Connected to acme · 3 tools
  search_acme_docs
  get_acme_api_docs
  call_any_api_of_acme
```

## From your code to an MCP server, without writing one.

_How it works_

1. **Your agent documents your API.** Paste the prompt into your coding agent. It reads your routes and creates the API docs in DocStar.
2. **DocStar creates the MCP server.** Every API docs project gets a hosted MCP server, named after your API, on a DocStar URL or your own domain.
3. **Any agent can use your API.** Your users connect their agents in one step. The tools read your published docs, so they're always current.

## What agents can do with your API.

_Tools_

Every MCP server comes with tools to find, read and call your API. Add your own for the jobs that matter most.

### Find the right endpoint

_find_

Agents search your docs in plain language and land on the right endpoint, guide or example.

```text
search_acme_docs “send a WhatsApp template”
```

### Read the exact contract

_read_

They get methods, URLs, parameters, request bodies, responses and examples, straight from your published docs.

```text
get_acme_api_docs → refunds module
```

### Make real calls

_act_

Agents call your API for the user, signed in with the user's own access, and confirm before anything that changes data.

```text
POST /v1/refunds → 201 Created
```

### Add your own tools

_your tools_

Turn key endpoints into dedicated tools, like create_refund, so agents use them directly. Write instructions that tell agents how your API works.

```text
create_refund · get_order · list_payments
```

## Works with every MCP client.

_Connect_

### Claude Code

Add it from the terminal.

```text
claude mcp add --transport http acme https://mcp.acme.com
```

### Cursor and VS Code

Add it to your MCP settings.

```text
{ "mcpServers": { "acme": { "url": "https://mcp.acme.com" } } }
```

### ChatGPT and Claude Desktop

Add a custom connector and paste the URL. Users sign in with OAuth when the tools need it.

## Run it where you need it.

_Hosted or local_

### Hosted MCP server

_hosted by DocStar · HTTP_

Paste one URL into your client. Find, read and call tools plus your own, with OAuth sign-in for each user. Best for sharing your API with every customer's agents.

### docstar-cli mcp

_on your machine · stdio_

Install your API with docstar-cli, then run it as a local MCP server with one tool per endpoint. Best for scripting, testing and power users.

[See the CLI](https://docstar.io/cli)

## MCP questions.

_FAQ_

### Do I need to build or host anything?

No. DocStar creates and hosts the MCP server for each API docs project. You publish your docs; the server follows them.

### How do the tools stay up to date?

The tools read your published docs. Republish and every connected agent sees the new contract.

### How do users authenticate?

The hosted server supports OAuth sign-in, so each user's agent calls your API with that user's own access.

### Can it run on my own domain?

Yes. The MCP server can run on your domain, for example mcp.acme.com, with DNS and certificate set up from DocStar.

## Your API, ready for every agent.

One prompt. Your docs, MCP server and CLI, live.

Copy prompt: paste this into your agent:

```text
Use DocStar to let my users use my app from their AI assistants.
Follow https://docstar.io/mcp/quickstart.md, document my app's user-facing APIs from my latest code, and set up MCP.
```

[Start free](https://app.docstar.io/login)
