> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mcp-use.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Welcome

> Build MCP servers, apps, clients, and agents with mcp-use for TypeScript.

For the complete documentation index, see
[llms.txt](https://mcp-use.com/docs/llms.txt).

**mcp-use** is the full-stack MCP framework for TypeScript. Build MCP servers,
MCP Apps that render interactive Views in ChatGPT and Claude, MCP clients, and
tool-calling agents with end-to-end type safety.

## Get started

Scaffold an mcp-use app with `create-mcp-use-app`:

```bash theme={null}
npx create-mcp-use-app@latest my-mcp-app
```

### Build a server and View

```typescript index.ts theme={null}
import { MCPServer } from "mcp-use";
import { z } from "zod";

const server = new MCPServer({
  name: "greeter",
  version: "1.0.0",
});

export const greet = server.tool(
  {
    name: "greet",
    description: "Greet someone by name",
    inputSchema: z.object({
      name: z.string().describe("Name of the person to greet"),
    }),
    outputSchema: z.object({
      greeting: z.string(),
    }),
    view: { name: "greeting" },
  },
  async ({ name }) => {
    const data = { greeting: `Hello, ${name}!` };

    return {
      content: [{ type: "text", text: data.greeting }],
      structuredContent: data,
    };
  },
);

export default server;
```

```tsx views/greeting/view.tsx theme={null}
import { useToolContext } from "mcp-use/react";

export default function Greeting() {
  const view = useToolContext<"greet">();

  if (view.status === "pending") return <p>Loading…</p>;
  if (view.status === "error") return <p>{view.error.message}</p>;

  return <h1>👋 {view.toolOutput.greeting}</h1>;
}
```

The default server export lets `mcp-use dev`, `mcp-use build`, and
`mcp-use start` manage the server lifecycle. The View directory name must match
the tool's `view.name`.

Looking for the **Python** docs? Start with the [Python quickstart](https://docs.mcp-use.com/python/getting-started/quickstart.md).

> [card] [New to MCP?](https://docs.mcp-use.com/home/mcp101)
>
> Learn how MCP clients, servers, agents, tools, resources, and prompts fit
> together.

## Choose your next step

> [card] [Build your first project](https://docs.mcp-use.com/typescript/getting-started/quickstart.md)
>
> Scaffold an MCP App, run it locally, and test its View.

> [card] [MCP Server](https://docs.mcp-use.com/typescript/server.md)
>
> Define tools, resources, prompts, authentication, and deployment.

> [card] [MCP Apps](https://docs.mcp-use.com/typescript/mcp-apps.md)
>
> Build interactive Views for ChatGPT, Claude, and other MCP hosts.

> [card] [MCP Client](https://docs.mcp-use.com/typescript/client/index.md)
>
> Connect to MCP servers programmatically.

> [card] [MCP Agent](https://docs.mcp-use.com/typescript/agent/index.md)
>
> Build agents that call tools through MCP connections.

> [!TIP]
>
> **Need help?** Join our [Discord](https://discord.gg/XkNkSkMz3V) or visit
> [GitHub](https://github.com/mcp-use/mcp-use).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.