SSOGEN / Learn / What Is an MCP Server, and Who Is Signed In When It Runs?

Learn

What Is an MCP Server, and Who Is Signed In When It Runs?

An MCP server gives AI applications tools, data and prompts over the Model Context Protocol, and the question to ask is whose credentials it uses.

Updated

What is an MCP server: an AI application calls a tool, and the server runs it with a named person's credentials.
One tool call, and the identity it quietly runs under.

What is an MCP server? An MCP server is a program that provides context to AI applications through the Model Context Protocol (MCP). It advertises what it can do, such as “read an invoice” or “query this database”, and runs the action when the application asks. It runs either on the user’s own computer or on a remote host.

In both cases, someone’s credentials sit behind every action. Whose credentials they are determines how safe it is to let an agent use the server.

What an MCP server provides

The MCP documentation (specification version 2026-07-28, read 2026-10-11) defines three kinds of capability a server can expose, called primitives.

Primitive What it is Example
Tools Executable functions an AI application can call to perform actions A file operation, an API call, a database query
Resources Data sources that give the application context File contents, database records
Prompts Reusable templates that structure the interaction with a model A system prompt, few-shot examples

Tools matter most for security, because a tool changes state. Each tool has a name, a description and an input schema. The application discovers tools with tools/list and runs one with tools/call.

The three parts: host, client and server

The architecture overview defines three participants:

  • MCP host: the AI application, such as Claude Code or Visual Studio Code, which manages the connections.
  • MCP client: a component inside the host that keeps one connection to one server. The host creates one client for each server it uses.
  • MCP server: the program that provides context to a client.

A host connected to a database server and a file server therefore holds two clients. The model never talks to a server directly; the host’s client does.

Local and remote MCP servers

“MCP server” names the program, wherever it runs. The protocol defines two transports, and each one produces a different type of server.

Local server Remote server
Transport stdio: messages over the standard streams of a process the client launches Streamable HTTP: each message is an HTTP POST to one endpoint
Where it runs On the same machine as the client On a host reached over the network
Clients it serves Typically one Typically many
How it gets credentials From the environment it was launched in. The authorization specification says stdio servers should not follow the OAuth flow and instead retrieve credentials from the environment Through the OAuth-based flow, where the server acts as a resource server and checks the token

What happens on one tool call

  1. The host connects a client to the server. The client may send server/discover to learn the server’s versions and capabilities.
  2. The client sends tools/list and receives each tool’s name, description and inputSchema.
  3. The model, working from the user’s request, picks a tool and arguments.
  4. The client sends tools/call with the tool name and arguments.
  5. The server runs the function and returns content. If it failed, the result carries isError.

The specification’s tools page adds two requirements:

  • A human should always be in the loop, able to deny a tool invocation.
  • Servers must validate inputs, apply access controls and rate limit calls.

Who is signed in when an MCP server runs

This is where servers differ most, and where most explanations stop.

Local server. It acts with whatever credentials its environment holds. If a developer starts it with a database password in the environment, every tool call uses that password.

Local server, the result. Every call uses that password regardless of which agent asked or which person the agent works for. The agent has no sign-in of its own.

Remote server. It can do better. Under the authorization specification, it validates an access token and must check that the token was issued for that server.

Remote server, the limit. Authorization is optional, however, and the specification does not identify the agent or the person it acts for. A token that names only the application hides both.

An identity layer fills that gap. In SSOGEN an agent is a registered identity with named human owners, and its credential works as follows:

  • It lasts 240 seconds by default and never more than 270.
  • It names the person the agent acts for and the agent itself.
  • It is bound to the agent’s key.

The MCP gateway then checks each tool call against the agent, the person and the scope. A sample credential is in the JWT decoder.

Questions people ask

What do MCP servers stand for?
MCP stands for Model Context Protocol. An MCP server is a program that speaks that protocol and gives AI applications context: tools they can call, data they can read and prompt templates they can reuse. “Server” names a role in a client-server exchange, not a type of machine.
What is the best AI server?
No single server is best, and an MCP server does not run an AI model. It is a connector that exposes tools to an AI application. Choose one by what it connects to, who maintains it, whether it runs locally or remotely, and how it identifies the caller.
What is MCP vs API?
An API is an interface a developer integrates with in code. MCP lets an AI agent discover tools at run time and call them. An MCP server usually calls an API underneath, so the two work together. The MCP vs API page compares them, including how sign-in differs.
In the MCP architecture, what are the three main components?
The host, the client and the server. The host is the AI application. The client is a component inside the host that holds one connection to one server. The server is the program that provides tools, resources and prompts. A host creates one client for each server it connects to.

Where to go next

Sources, all read 2026-10-11: the MCP architecture overview, the specification pages on tools, transports and authorization (version 2026-07-28).