# MCP server

> An MCP server is a program that exposes tools, data or prompts to AI applications over the Model Context Protocol. It runs either locally as a process on your machine or remotely over HTTP, where it is usually protected by OAuth.

Canonical: https://vibely.sh/glossary/mcp-server
Last updated: 2026-10-08

## What an MCP server does

An MCP server is the side of an [MCP](https://vibely.sh/glossary/mcp) connection that has the capabilities. When an AI assistant connects, the server lists what it offers: **tools** the model may call, **resources** it may read, and **prompts** the user may pick. The assistant decides when to call a tool, the server runs it and returns the result. One server can be used from any MCP-compatible client without changes, which is the whole point of the protocol.

## Local and remote servers

A **local** server runs as a child process of the assistant and talks over stdio. It's typical for developer tools that read files on your machine, and it gets its credentials from the environment. A **remote** server runs on the internet and talks over Streamable HTTP. It can serve many users, so it needs to know who is calling.

For HTTP servers, the MCP authorization specification builds on OAuth 2.1. The server acts as an OAuth resource server and must publish Protected Resource Metadata (RFC 9728) that points clients at its authorization server. Clients must use [PKCE](https://vibely.sh/glossary/oauth-pkce) and must name the server they want a token for (RFC 8707 resource indicators), and servers must reject tokens that were issued for anyone else. Passing a user's token straight through to another API is explicitly forbidden.

## What to look for before you connect one

- **Scopes.** Can you grant less than everything? A server that only offers all-or-nothing access asks for more trust than it needs.
- **Which actions cost money or change data.** Tool names should make it obvious, and the client should ask before it runs them.
- **Revocation.** You should be able to see connected apps and disconnect one without changing your password.
- **Tool output is untrusted input.** Text a tool returns goes into the model's context, so a server that relays third-party content can carry prompt-injection attempts.

## How Vibely uses it

Vibely runs a remote MCP server at `https://albert.vibely.sh/mcp` over Streamable HTTP. You connect it from Claude, ChatGPT, Cursor, Claude Code, VS Code or Codex and sign in with OAuth 2.1. Clients register themselves dynamically, PKCE is required, and only the S256 method is accepted. The server has 48 tools (chats, artifacts, designs, scheduled tasks, Code sessions, Security findings and Build apps) and 15 scopes; the opt-in browser scope adds 17 tools for your own Chrome. Opt-in scopes start unticked on the consent screen, and you can untick any other before you approve. Only the tools that run an agent use credits. Access tokens last an hour and refresh tokens rotate, each lasting 30 days. Calls are rate-limited to 120 a minute per connection. Settings → Connected AI apps lists each connection's scopes and recent calls, with a Disconnect button. Workspace admins can turn AI apps off, allow approved clients only, block tools by name and, on Enterprise, require single sign-on; workspace IP allowlists apply.

Vibely can also build an MCP server for you: agent integrations add one at `/mcp` to a published web app, with one tool per action the app already supports.

- [Connect Vibely to your AI assistant](https://vibely.sh/features/mcp)
- [Turn your app into an MCP server](https://vibely.sh/features/agent-integrations)
- [Plans and credits](https://vibely.sh/pricing)

## Related terms

- [Model Context Protocol (MCP)](https://vibely.sh/glossary/mcp)
- [OAuth PKCE](https://vibely.sh/glossary/oauth-pkce)
- [Plan mode](https://vibely.sh/glossary/plan-mode)

## Sources

- [Understanding MCP servers](https://modelcontextprotocol.io/docs/learn/server-concepts) (modelcontextprotocol.io)
- [MCP authorization specification (2025-11-25)](https://modelcontextprotocol.io/specification/2025-11-25/basic/authorization) (modelcontextprotocol.io)
- [MCP transports (2025-11-25)](https://modelcontextprotocol.io/specification/2025-11-25/basic/transports) (modelcontextprotocol.io)
- [MCP security best practices](https://modelcontextprotocol.io/specification/2025-11-25/basic/security_best_practices) (modelcontextprotocol.io)
